/* ============================================================
   NOOR-E-RUBAB
   AUTHENTICATION PAGES
   LOGIN / REGISTER / PASSWORD RESET
============================================================ */


/* ============================================================
   AUTH PAGE
============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;

    background:
        radial-gradient(
            circle at top left,
            rgba(79, 70, 229, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(13, 110, 253, 0.10),
            transparent 35%
        ),
        #f5f7fb;
}


/* ============================================================
   AUTH CARD
============================================================ */

.auth-card {
    width: 100%;
    max-width: 450px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    padding: 40px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.08);

    animation: authCardShow 0.35s ease;
}


/* ============================================================
   CARD ANIMATION
============================================================ */

@keyframes authCardShow {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ============================================================
   AUTH LOGO
============================================================ */

.auth-logo {
    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: linear-gradient(
        135deg,
        #4f46e5,
        #3730a3
    );

    color: #ffffff;

    font-size: 30px;

    box-shadow:
        0 10px 25px rgba(79, 70, 229, 0.25);
}


/* ============================================================
   AUTH BRAND
============================================================ */

.auth-card h3 {
    color: #1f2937;
    letter-spacing: -0.3px;
}

.auth-card p {
    color: #6b7280;
}


/* ============================================================
   FORM LABELS
============================================================ */

.auth-card .form-label {
    color: #374151;
    font-size: 14px;

    margin-bottom: 7px;
}


/* ============================================================
   INPUT GROUP
============================================================ */

.auth-card .input-group {
    width: 100%;
}


/* ============================================================
   INPUT ICON
============================================================ */

.auth-card .input-group-text {
    min-width: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8fafc;

    border-color: #dfe3e8;

    color: #6b7280;

    font-size: 16px;
}


/* ============================================================
   FORM INPUT
============================================================ */

.auth-card .form-control {
    min-height: 46px;

    border-color: #dfe3e8;

    color: #1f2937;

    font-size: 14px;

    box-shadow: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.auth-card .form-control::placeholder {
    color: #9ca3af;
}


.auth-card .form-control:focus {
    border-color: #4f46e5;

    box-shadow:
        0 0 0 3px rgba(79, 70, 229, 0.10);

    background: #ffffff;
}


/* ============================================================
   INPUT GROUP FOCUS
============================================================ */

.auth-card .input-group:focus-within .input-group-text {
    border-color: #4f46e5;

    color: #4f46e5;

    background: #f8f9ff;
}


/* ============================================================
   PASSWORD TOGGLE
============================================================ */

.auth-card .password-toggle {
    min-width: 46px;

    border-color: #dfe3e8;

    color: #6b7280;

    background: #ffffff;

    box-shadow: none;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.auth-card .password-toggle:hover {
    color: #4f46e5;

    background: #f8f9ff;

    border-color: #4f46e5;
}


.auth-card .password-toggle:focus {
    color: #4f46e5;

    border-color: #4f46e5;

    box-shadow:
        0 0 0 3px rgba(79, 70, 229, 0.10);
}


/* ============================================================
   CHECKBOX
============================================================ */

.auth-card .form-check {
    display: flex;
    align-items: center;
    gap: 7px;
}


.auth-card .form-check-input {
    width: 16px;
    height: 16px;

    margin-top: 0;

    border-color: #cbd5e1;

    cursor: pointer;

    box-shadow: none;
}


.auth-card .form-check-input:checked {
    background-color: #4f46e5;

    border-color: #4f46e5;
}


.auth-card .form-check-input:focus {
    border-color: #4f46e5;

    box-shadow:
        0 0 0 3px rgba(79, 70, 229, 0.10);
}


.auth-card .form-check-label {
    color: #6b7280;

    font-size: 13px;

    cursor: pointer;
}


/* ============================================================
   AUTH LINKS
============================================================ */

.auth-link {
    color: #4f46e5;

    font-size: 13px;

    font-weight: 500;

    text-decoration: none;

    transition: color 0.2s ease;
}


.auth-link:hover {
    color: #3730a3;

    text-decoration: underline;
}


/* ============================================================
   LOGIN BUTTON
============================================================ */

.auth-login-btn {
    min-height: 48px;

    border: none;

    border-radius: 10px;

    background: linear-gradient(
        135deg,
        #4f46e5,
        #3730a3
    );

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 0.1px;

    box-shadow:
        0 8px 18px rgba(79, 70, 229, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}


.auth-login-btn:hover {
    background: linear-gradient(
        135deg,
        #4338ca,
        #312e81
    );

    transform: translateY(-1px);

    box-shadow:
        0 10px 22px rgba(79, 70, 229, 0.25);
}


.auth-login-btn:active {
    transform: translateY(0);

    box-shadow:
        0 5px 12px rgba(79, 70, 229, 0.18);
}


.auth-login-btn:focus {
    box-shadow:
        0 0 0 3px rgba(79, 70, 229, 0.18),
        0 8px 18px rgba(79, 70, 229, 0.20);
}


/* ============================================================
   ALERTS
============================================================ */

.auth-card .alert {
    border-radius: 10px;

    font-size: 13px;

    border-width: 1px;
}


.auth-card .alert ul {
    font-size: 12px;
}


.auth-card .alert-danger {
    background: #fff5f5;

    border-color: #fecaca;

    color: #b91c1c;
}


.auth-card .alert-success {
    background: #f0fdf4;

    border-color: #bbf7d0;

    color: #166534;
}


/* ============================================================
   VALIDATION ERROR
============================================================ */

.auth-card .text-danger {
    font-size: 12px;
}


/* ============================================================
   FOOTER
============================================================ */

.auth-card .text-muted {
    color: #6b7280 !important;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 575.98px) {

    .auth-page {
        min-height: 100vh;

        padding: 20px 14px;
    }

    .auth-card {
        max-width: 100%;

        padding: 30px 22px;

        border-radius: 16px;
    }

    .auth-logo {
        width: 60px;
        height: 60px;

        border-radius: 16px;

        font-size: 27px;
    }

    .auth-card h3 {
        font-size: 22px;
    }

}


/* ============================================================
   VERY SMALL DEVICES
============================================================ */

@media (max-width: 360px) {

    .auth-page {
        padding: 15px 10px;
    }

    .auth-card {
        padding: 25px 17px;
    }

    .auth-card .d-flex.justify-content-between {
        align-items: flex-start !important;
        gap: 10px;
    }

    .auth-link {
        font-size: 12px;
    }

}