/* =========================================================
   WATCHFOX AUTH V2
   ========================================================= */

.wf-auth-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(
            circle at top,
            rgba(37, 99, 235, 0.08),
            transparent 36%
        ),
        #f7f9fc;
}

.wf-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.wf-auth-shell {
    width: min(100%, 440px);
}

.wf-auth-brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 auto 18px;
    color: var(--text);
    font-size: 19px;
    font-weight: 800;
    text-decoration: none;
}

.wf-auth-brand:hover { opacity: .88; }
.wf-auth-brand-mark { font-size: 24px; line-height: 1; }

.wf-auth-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow:
        0 12px 32px rgba(15, 23, 42, 0.06),
        0 1px 2px rgba(15, 23, 42, 0.04);
}

.wf-auth-head { margin-bottom: 22px; }

.wf-auth-head h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.wf-auth-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.wf-auth-plan-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: -5px 0 20px;
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
    color: #475569;
    font-size: 12px;
}

.wf-auth-plan-badge {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.wf-auth-notice {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.wf-auth-notice strong { font-size: 12px; }

.wf-auth-notice-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.wf-auth-notice-error {
    border-color: #fecaca;
    background: #fff7f7;
    color: #991b1b;
}

.wf-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wf-auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.wf-auth-field label {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.wf-auth-field input {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cfd6e2;
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.wf-auth-field input:hover { border-color: #aeb8c6; }

.wf-auth-field input:focus {
    border-color: #2563eb;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .11);
}

.wf-auth-help {
    color: #94a3b8;
    font-size: 11px;
}

.wf-auth-submit {
    width: 100%;
    margin-top: 2px;
}

.wf-auth-footer {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.wf-auth-footer a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.wf-auth-footer a:hover { text-decoration: underline; }

.wf-auth-caption {
    margin: 14px 12px 0;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.wf-auth-brand:focus-visible,
.wf-auth-footer a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

.wf-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wf-auth-label-row a {
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.wf-auth-label-row a:hover {
    text-decoration: underline;
}

.wf-auth-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-decoration: none;
}

@media (max-width: 520px) {
    .wf-auth-page {
        align-items: flex-start;
        padding: 24px 14px;
    }

    .wf-auth-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .wf-auth-head h1 { font-size: 25px; }
    .wf-auth-plan-note { align-items: flex-start; }
}
