/* pages/auth.css — auto-split from style.css. */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 380px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.recovery-container {
    width: 100%;
    max-width: 720px;
    min-width: 0;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.recovery-container .help-content { max-width: none; }

.recovery-container pre {
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 12px 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
}

.recovery-container pre code {
    background: none;
    padding: 0;
    border: none;
    white-space: inherit;
    font-size: inherit;
}

.recovery-container code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1px 6px;
    color: var(--text);
    word-break: break-word;
}

.recovery-container h4 {
    font-size: 15px;
    color: var(--text-bright);
    margin: 20px 0 8px;
}

.recovery-container ol {
    margin: 12px 0;
    padding-left: 22px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
}

.recovery-container ol li { margin-bottom: 6px; }

@media (max-width: 640px) {
    .recovery-container {
        padding: 24px 20px;
        background: transparent;
        border: none;
        border-radius: 0;
        align-self: flex-start;
    }
    .recovery-container pre {
        padding: 10px 12px;
        font-size: 12px;
    }
}

.auth-brand {
    font-size: 28px;
    color: var(--text-bright);
    text-align: center;
    margin-bottom: 4px;
}

.auth-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 28px;
}

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

.auth-forgot {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

.auth-forgot a {
    color: var(--text-dim);
    text-decoration: none;
}

.auth-forgot a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    color: var(--mauve);
    margin-bottom: 20px;
    opacity: 0.7;
}

.error-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px;
}

.error-message {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 520px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.error-details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    max-width: 600px;
    width: 100%;
    margin-bottom: 24px;
    text-align: left;
}

.error-details summary {
    cursor: pointer;
    color: var(--text-dim);
    font-size: 0.85rem;
    user-select: none;
}

.error-details pre {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: var(--text-dim);
    white-space: pre-wrap;
    word-break: break-all;
}

.error-actions {
    display: flex;
    gap: 12px;
}

.error-actions .btn-primary {
    background: var(--mauve);
    color: var(--bg);
}

.error-actions .btn-primary:hover {
    filter: brightness(1.1);
}

.error-actions .btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.error-actions .btn-secondary:hover {
    background: var(--bg-elevated);
}

