/* =============================================================
   Auth pages facelift (login, signup, password reset, MFA, etc.)
   Presentation-only overrides — loaded after style.css so these
   rules win the cascade. No backend/markup contracts are changed;
   this file only re-skins the existing .account-* classes.
   ============================================================= */

:root {
    --auth-radius-lg: 24px;
    --auth-radius-md: 14px;
    --auth-radius-sm: 10px;
    --auth-primary: #0d6efd;
    --auth-primary-dark: #610c6e;
    --auth-ink: #16181d;
    --auth-muted: #6b7280;
    --auth-border: #e5e7eb;
    --auth-field-bg: #f9fafb;
}

/* ---------- Backdrop ---------- */

.account-page .login-bg::after {
    background: linear-gradient(135deg, rgba(15, 17, 34, .62) 0%, rgba(97, 12, 110, .48) 55%, rgba(13, 110, 253, .45) 100%);
}

.account-page .main-wrapper {
    min-height: 100vh;
    padding: 32px 16px;
}

.account-page .account-content {
    width: 100%;
    padding: 12px 0;
}

/* ---------- Top toggle button (Login as Staff / Login as Admin) ---------- */

.account-page .apply-btn {
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    box-shadow: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    position: fixed;
    right: 24px;
    top: 24px;
    transition: background .2s ease, transform .2s ease;
}

.account-page .apply-btn:hover,
.account-page .apply-btn:focus {
    background: rgba(255, 255, 255, .26);
    color: #fff;
    transform: translateY(-1px);
}

/* ---------- Card ---------- */

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-box {
    animation: authCardIn .45s ease both;
    background-color: rgba(255, 255, 255, .98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: var(--auth-radius-lg);
    box-shadow: 0 24px 60px -20px rgba(10, 12, 30, .45);
    width: 460px;
}

.tc-box {
    background-color: rgba(255, 255, 255, .98);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: var(--auth-radius-lg);
    box-shadow: 0 24px 60px -20px rgba(10, 12, 30, .45);
}

.account-wrapper {
    padding: 44px 40px;
}

.account-logo {
    margin-bottom: 24px;
}

.account-logo img {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 20px -8px rgba(16, 24, 40, .18);
    padding: 10px;
    width: 84px;
}

.account-title {
    color: var(--auth-ink);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.account-subtitle {
    color: var(--auth-muted);
    font-size: 15px;
    margin-bottom: 28px;
}

/* ---------- Form fields ---------- */

.account-box .form-group,
.tc-box .form-group {
    margin-bottom: 20px;
}

.account-box label,
.tc-box label {
    color: #344054;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .1px;
    margin-bottom: 7px;
}

.account-box .row label {
    margin-bottom: 0;
}

.account-box .form-control,
.tc-box .form-control {
    background-color: var(--auth-field-bg);
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    color: var(--auth-ink);
    font-size: 15px;
    height: 50px;
    padding-left: 16px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.account-box .form-control:focus,
.tc-box .form-control:focus {
    background-color: #fff;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .12);
}

.account-box .form-control.is-invalid {
    border-color: #dc3545;
}

/* Icon-prefixed inputs */
.auth-field {
    position: relative;
}

.auth-field .auth-field-icon {
    color: #9ca3af;
    font-size: 16px;
    left: 16px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: color .18s ease;
    z-index: 2;
}

.auth-field:focus-within .auth-field-icon {
    color: var(--auth-primary);
}

.auth-field .form-control {
    padding-left: 44px;
}

.auth-field .auth-toggle-password {
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: color .18s ease;
    z-index: 2;
}

.auth-field .auth-toggle-password:hover {
    color: var(--auth-primary);
}

/* OTP input */
.auth-otp-input {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 10px;
    padding-left: 16px !important;
    text-align: center;
}

/* ---------- Checkbox ---------- */

.account-box .form-check-input,
.tc-box .form-check-input {
    accent-color: var(--auth-primary);
    border-radius: 5px;
    cursor: pointer;
    height: 17px;
    width: 17px;
}

.account-box .form-check-label,
.tc-box .form-check-label {
    color: var(--auth-muted);
    font-size: 13.5px;
}

.account-box .form-check-label a,
.tc-box .form-check-label a {
    color: var(--auth-primary);
    font-weight: 600;
}

/* ---------- Buttons ---------- */

.account-box .account-btn,
.tc-box .account-btn {
    border-radius: var(--auth-radius-sm);
    box-shadow: 0 10px 24px -8px rgba(13, 110, 253, .55);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .2px;
    padding: 13px 26px;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.account-box .account-btn:hover,
.account-box .account-btn:focus,
.tc-box .account-btn:hover,
.tc-box .account-btn:focus {
    box-shadow: 0 14px 28px -8px rgba(13, 110, 253, .6);
    opacity: 1;
    transform: translateY(-2px);
}

.account-box .account-btn:disabled,
.tc-box .account-btn:disabled {
    box-shadow: none;
    opacity: .55;
    transform: none;
}

.account-box .account-btn:active,
.tc-box .account-btn:active {
    transform: translateY(0);
}

/* ---------- Footer / links ---------- */

.account-footer {
    margin-top: 26px;
}

.account-footer p {
    color: var(--auth-muted);
    font-size: 14px;
}

.account-footer a {
    font-weight: 600;
}

.account-box .text-muted {
    font-size: 13.5px;
    font-weight: 500;
}

/* ---------- Alerts ---------- */

.account-content .alert {
    border: 0;
    border-radius: var(--auth-radius-sm);
    box-shadow: 0 8px 20px -10px rgba(16, 24, 40, .25);
    font-size: 14px;
}

/* ---------- Terms & Conditions page ---------- */

.tc-box .card {
    border: 0;
    border-radius: var(--auth-radius-md);
}

/* ---------- Responsive ---------- */

@media (max-width: 576px) {
    .account-box,
    .tc-box {
        border-radius: var(--auth-radius-md);
        width: 100%;
    }

    .account-wrapper {
        padding: 32px 22px;
    }

    .account-title {
        font-size: 22px;
    }

    .account-page .apply-btn {
        padding: 8px 16px;
        right: 16px;
        top: 16px;
    }
}
