/* ── Auth page shell ─────────────────────────────────────────────── */
.auth-bg {
    min-height: calc(100vh - 88px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1a0e 0%, #0E141B 45%, #0d2018 100%);
}

/* Animated blobs */
.auth-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: authBlobFloat 8s ease-in-out infinite alternate;
    pointer-events: none;
}
.auth-blob-1 {
    width: 480px; height: 480px;
    background: #0B5F2A;
    top: -120px; left: -100px;
    animation-duration: 9s;
}
.auth-blob-2 {
    width: 360px; height: 360px;
    background: #4DFF88;
    bottom: -80px; right: -80px;
    opacity: 0.10;
    animation-duration: 11s;
    animation-delay: -3s;
}
.auth-blob-3 {
    width: 220px; height: 220px;
    background: #4DFF88;
    top: 40%; left: 55%;
    opacity: 0.07;
    animation-duration: 7s;
    animation-delay: -1.5s;
}
@keyframes authBlobFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(24px, -18px) scale(1.06); }
}

/* ── Glass card ─────────────────────────────────────────────────── */
.auth-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    padding: 2.5rem 2.25rem;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

/* ── Labels ─────────────────────────────────────────────────────── */
.auth-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

/* ── Inputs ─────────────────────────────────────────────────────── */
.auth-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    font-size: 0.9rem;
    color: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.auth-input::placeholder { color: rgba(255, 255, 255, 0.25); }
.auth-input:focus {
    border-color: rgba(77, 255, 136, 0.55);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 3px rgba(77, 255, 136, 0.12);
}

/* ── Primary button ─────────────────────────────────────────────── */
.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0B5F2A, #0d7a36);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 4px 16px rgba(11, 95, 42, 0.4);
}
.auth-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4DFF88, #3de878);
    color: #0E141B;
    box-shadow: 0 4px 24px rgba(77, 255, 136, 0.35);
    transform: translateY(-1px);
}
.auth-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Error box ──────────────────────────────────────────────────── */
.auth-error {
    padding: 11px 14px;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    font-size: 0.8rem;
    color: #FCA5A5;
    margin-bottom: 1.25rem;
}

/* ── Divider ────────────────────────────────────────────────────── */
.auth-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 1.5rem 0;
}

/* ── Links ──────────────────────────────────────────────────────── */
.auth-link {
    color: rgba(77, 255, 136, 0.75);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.18s;
}
.auth-link:hover { color: #4DFF88; }

/* ── Show/hide password ─────────────────────────────────────────── */
.pwd-wrap { position: relative; }
.pwd-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3);
    padding: 0;
    transition: color 0.18s;
}
.pwd-toggle:hover { color: rgba(255, 255, 255, 0.65); }

/* ── Lock badge ─────────────────────────────────────────────────── */
.auth-locked {
    padding: 11px 14px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    font-size: 0.8rem;
    color: #FCD34D;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
