﻿/* =========================
   FONT
========================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =========================
   BODY BACKGROUND
========================= */

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg,#F8F4E9,#F3E8FF,#FFF8E7);
    display: block; /* IMPORTANT FIX */
}
    /* Decorative circles */

    body::before,
    body::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        z-index: 0;
    }

    body::before {
        width: 350px;
        height: 350px;
        background: rgba(91,33,182,0.12);
        top: -100px;
        left: -120px;
    }

    body::after {
        width: 300px;
        height: 300px;
        background: rgba(168,85,247,0.10);
        bottom: -120px;
        right: -100px;
    }

/* =========================
   LOGIN CONTAINER
========================= */

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================
   LOGIN BOX
========================= */

.login-box {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    text-align: center;
    animation: fadeIn 0.8s ease-in-out;
}

/* Animation */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   TITLE
========================= */

.login-box h1 {
    font-size: 34px;
    color: #5B21B6;
    margin-bottom: 10px;
    font-weight: 800;
}

.login-box p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* =========================
   LABELS
========================= */

.login-box label {
    display: block;
    text-align: left;
    margin: 12px 0 6px;
    font-weight: 600;
    color: #444;
}

/* =========================
   INPUTS
========================= */

.login-box input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
    background: #fff;
}

    .login-box input:focus {
        border-color: #5B21B6;
        box-shadow: 0 0 0 3px rgba(91,33,182,0.15);
    }

/* =========================
   LOGIN BUTTON
========================= */

.login-btn {
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg,#5B21B6,#7C3AED);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(91,33,182,0.25);
}

    .login-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 30px rgba(91,33,182,0.35);
    }

/* =========================
   ERROR MESSAGE
========================= */

.error-message {
    margin-top: 15px;
    background: #FEE2E2;
    color: #B91C1C;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 500px) {

    .login-box {
        margin: 20px;
        padding: 30px;
    }

        .login-box h1 {
            font-size: 26px;
        }
}
