* {
    box-sizing: border-box;
}


/* ============ GLOBAL ============ */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;

    /* NEW BEAUTIFUL GRADIENT */
    background: linear-gradient(135deg, #6a11cb, #2575fc, #00c6fb);
    background-size: 400% 400%;
    animation: gradientFlow 10s ease infinite;

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Gradient Animation */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============ CONTAINER ============ */
.auth-container {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 35px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.20);
    animation: fadeIn 0.5s ease;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ HEADINGS ============ */
h2 {
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 26px;
    color: #1f2d3d;
}

/* ============ FORM ============ */
.input-group {
    margin-bottom: 22px;
    text-align: left;
}

.input-group label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

/* NEW PERFECTLY CENTERED INPUT WITH GLOW EFFECT */
.input-group input {
    width: 100%;
    padding: 14px 16px;   /* adds good left/right spacing */
    margin-top: 6px;

    border: 2px solid #d8e2ee;
    border-radius: 12px;
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
}


/* Glowing Border Effect */
.input-group input:focus {
    border-color: #6a11cb;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(106, 17, 203, 0.6);
    outline: none;
    transform: scale(1.02);
}

/* ============ BUTTONS ============ */
.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn:hover {
    background: linear-gradient(135deg, #7f2cff, #3795ff);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(74, 0, 200, 0.35);
}

/* ============ LINK ============ */
.switch-link {
    margin-top: 18px;
    font-size: 14px;
    color: #333;
}

.switch-link a {
    color: #2575fc;
    font-weight: 600;
    text-decoration: none;
}

.switch-link a:hover {
    text-decoration: underline;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
    .auth-container {
        margin: 20px;
        padding: 30px 25px;
    }

    h2 {
        font-size: 22px;
    }
}
