/* Shared auth pages — login-adjacent (forgot / reset password) */
:root {
    --btc-primary: #0abab5;
    --btc-dark: #2b4f92;
}

* { box-sizing: border-box; }

body.auth-page {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2b4f92 0%, #0abab5 100%);
    padding: 2rem 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

body.auth-page::before {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -180px;
    right: -150px;
    pointer-events: none;
}

body.auth-page::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -100px;
    left: -80px;
    pointer-events: none;
}

.auth-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    margin: auto;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.6rem;
}

.auth-brand img {
    height: 52px;
    width: auto;
    margin-bottom: 0.5rem;
}

.auth-brand .brand-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--btc-dark);
    line-height: 1.2;
}

.auth-brand .brand-sub {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
}

.auth-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--btc-dark);
    margin-bottom: 0.25rem;
}

.auth-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 1.4rem;
    line-height: 1.55;
}

.auth-field {
    position: relative;
    margin-bottom: 1rem;
}

.auth-field i.uil {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s;
}

.auth-field input {
    width: 100%;
    padding: 0.7rem 0.9rem 0.7rem 2.6rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    color: #1f2937;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-field input:focus,
.auth-field.active input {
    border-color: var(--btc-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.12);
}

.auth-field input::placeholder { color: #94a3b8; }

.auth-field input[readonly] {
    background: #eef2f7;
    color: #64748b;
    cursor: not-allowed;
}

.auth-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #94a3b8;
    font-size: 16px;
    transition: color 0.2s;
}

.auth-eye-btn:hover { color: var(--btc-primary); }

.auth-alert {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
}

.auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.auth-alert-error ul {
    margin: 0;
    padding-left: 1.2rem;
}

.auth-alert-info {
    background: rgba(43, 79, 146, 0.07);
    border: 1px solid rgba(43, 79, 146, 0.18);
    color: #1e3a6e;
}

.btn-auth-primary {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--btc-dark) 0%, var(--btc-primary) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(10, 186, 181, 0.28);
    text-align: center;
}

.btn-auth-primary:hover {
    opacity: 0.92;
    box-shadow: 0 10px 24px rgba(10, 186, 181, 0.36);
}

.btn-auth-secondary {
    display: block;
    width: 100%;
    padding: 0.7rem;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 0.65rem;
}

.btn-auth-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

.auth-actions-row {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.auth-actions-row .btn-auth-primary,
.auth-actions-row .btn-auth-secondary {
    flex: 1;
    margin-top: 0;
}

.auth-footer-note {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.74rem;
    color: #94a3b8;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.4rem;
        border-radius: 18px;
    }

    .auth-actions-row {
        flex-direction: column;
    }
}
