/* =====================================================
   Clean Unified White Login
   ===================================================== */

.auth-page-wrap {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

/* White card */
.auth-card-white {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.02),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 16px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Card header */
.auth-card-header {
    text-align: center;
    padding: 2.5rem 2rem 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #495057;
}

.auth-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.3rem;
    letter-spacing: -0.2px;
}

.auth-desc {
    font-size: 0.88rem;
    color: #868e96;
    margin: 0;
}

/* Card body */
.auth-card-body {
    padding: 1.75rem 2rem 2rem;
}

/* Form */
.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.auth-input-group:focus-within {
    border-color: #ced4da;
    box-shadow: 0 0 0 3px rgba(206, 212, 218, 0.25);
}

.auth-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    color: #adb5bd;
    font-size: 1rem;
    padding-left: 0.5rem;
}

.auth-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 0.9rem 0.8rem 0.4rem;
    font-size: 0.95rem;
    color: #212529;
    font-weight: 500;
    outline: none;
}

.auth-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

/* Remember me */
.auth-remember {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-form .form-check-input {
    border-color: #dee2e6;
}

.auth-form .form-check-input:checked {
    background-color: #495057;
    border-color: #495057;
}

/* Button */
.auth-btn-white {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #ffffff;
    background: #212529;
    transition: all 0.25s ease;
    margin-top: 0.5rem;
}

.auth-btn-white:hover {
    background: #343a40;
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.15);
}

/* Footer link */
.auth-footer-link {
    text-align: center;
    margin-top: 1.25rem;
    color: #868e96;
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-footer-link a {
    color: #212529;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.auth-footer-link a:hover {
    color: #495057;
    text-decoration: underline;
}

/* Validation error */
.auth-error {
    display: block;
    color: #dc3545;
    font-size: 0.78rem;
    margin-top: 0.35rem;
}

/* Alerts inside card */
.auth-alert {
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.15);
    color: #842029;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.auth-alert.success {
    background: rgba(25, 135, 84, 0.06);
    border-color: rgba(25, 135, 84, 0.15);
    color: #0f5132;
}

.auth-alert.warning {
    background: rgba(255, 193, 7, 0.06);
    border-color: rgba(255, 193, 7, 0.15);
    color: #664d03;
}

/* Override layout background for login page only */
main .container:has(.auth-page-wrap) {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-page-wrap {
        padding: 2rem 1rem;
        min-height: calc(100vh - 130px);
    }

    .auth-card-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .auth-card-body {
        padding: 1.5rem;
    }
}
