/* Auth screens (from app.css) */
/* Auth */
.auth-screen, .dashboard-screen {
    position: fixed;
    top: var(--app-top-bar-offset);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--rtp-bg-gradient);
    color: var(--rtp-brand-text);
}
.auth-card, .dashboard-card {
    width: 100%;
    max-width: 520px;
    background: var(--rtp-surface);
    border: 1px solid var(--rtp-border);
    border-radius: 16px;
    box-shadow: var(--rtp-shadow-soft);
    padding: 24px;
}
.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--rtp-brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.auth-subtitle, .dashboard-subtitle { color: var(--rtp-brand-muted); margin-bottom: 14px; }
.auth-input {
    width: 100%;
    background: var(--rtp-input-bg);
    border: 1px solid var(--rtp-border);
    color: var(--rtp-brand-text);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    transition: var(--rtp-transition-ui);
}
.auth-input:focus {
    outline: none;
    border-color: var(--rtp-brand-primary);
    box-shadow: 0 0 0 2px var(--rtp-focus-ring);
}
/* Consentimiento legal (solo en modo registro). */
.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--rtp-border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--rtp-bg-panel) 70%, transparent);
    color: var(--rtp-brand-muted);
    font-family: var(--rtp-font-ui);
    font-size: 0.86rem;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: var(--rtp-transition-ui);
}
.auth-consent__check {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--rtp-brand-primary);
    cursor: pointer;
}
.auth-consent__text a {
    color: var(--rtp-brand-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.auth-consent--missing {
    border-color: var(--rtp-color-danger);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--rtp-color-danger) 30%, transparent);
}
.auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.auth-btn-primary, .auth-btn-secondary, .logout-btn {
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--rtp-transition-ui);
}
.auth-btn-primary {
    background: var(--rtp-brand-primary);
    color: var(--rtp-on-primary);
    padding: 10px 12px;
}
.auth-btn-primary:hover { filter: brightness(1.08); transform: scale(0.99); }
.auth-btn-primary:active { transform: scale(0.98); }
.auth-btn-secondary {
    background: var(--rtp-surface-raised);
    color: var(--rtp-brand-text);
    padding: 10px 12px;
    border: 1px solid var(--rtp-border);
}
.auth-btn-secondary:hover { filter: brightness(1.06); }
.auth-error { color: var(--rtp-color-danger); margin-top: 10px; font-size: 0.9rem; }
.auth-recover-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--rtp-brand-primary);
    font-family: var(--rtp-font-ui);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 4px;
}

.auth-recover-link:hover,
.auth-recover-link:focus-visible {
    filter: brightness(1.08);
    outline: none;
}

.auth-recover-section {
    margin-top: 14px;
    padding: 12px 12px;
    border: 1px solid color-mix(in srgb, var(--rtp-border) 80%, var(--rtp-brand-primary) 20%);
    border-radius: 12px;
    background: color-mix(in srgb, var(--rtp-bg-panel) 70%, transparent);
}

.auth-recover-text {
    margin: 0 0 10px;
    color: var(--rtp-brand-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-recover-actions {
    display: flex;
    gap: 10px;
}

.auth-recover-actions .auth-btn-secondary {
    flex: 1;
}

.auth-recover-status {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
}
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dashboard-header h2 { font-size: 1.4rem; font-weight: 700; color: var(--rtp-brand-primary); }
.logout-btn {
    background: var(--rtp-surface-raised);
    color: var(--rtp-brand-text);
    padding: 8px 12px;
    border: 1px solid var(--rtp-border);
}
.logout-btn:hover { filter: brightness(1.08); }

