/* Pantallas auth (base_auth.html) — Coral Breeze, fondo claro */

.auth-page-shell {
    background: var(--color-bg-secondary, #f8fafc);
    min-height: calc(100vh - var(--scm-navbar-height, 4.5rem));
    position: relative;
    padding-bottom: 2rem;
}

.auth-page-shell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(
        180deg,
        rgba(30, 58, 95, 0.06) 0%,
        rgba(255, 80, 71, 0.04) 45%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

.auth-page-shell > * {
    position: relative;
    z-index: 1;
}

.auth-page-shell .auth-card {
    border: 1px solid var(--color-border, #e2e8f0) !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
}

.auth-page-shell .auth-footer-note {
    color: var(--color-text-secondary, #64748b);
}

.auth-status-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.auth-status-icon--primary {
    background: rgba(15, 23, 42, 0.08);
    color: var(--color-primary, #0f172a);
}

.auth-status-icon--accent {
    background: rgba(255, 80, 71, 0.1);
    color: var(--color-accent, #ff5047);
}

.auth-status-icon--success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--color-success, #22c55e);
}

.auth-status-icon--warning {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.auth-google-btn {
    border-color: #e9ecef !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.auth-google-btn:hover {
    border-color: #4285F4 !important;
    background-color: #f8f9ff !important;
}

.auth-password-wrap {
    display: flex;
    align-items: stretch;
    border: 2px solid #e9ecef;
    border-radius: 0.375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-password-wrap:focus-within {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.12);
}

.auth-password-wrap-invalid,
.auth-password-wrap:has(.is-invalid) {
    border-color: var(--bs-danger, #dc3545);
}

.auth-password-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none !important;
    border-radius: 0.375rem 0 0 0.375rem;
    padding-right: 0.5rem;
}

.auth-password-input:focus {
    box-shadow: none !important;
}

.auth-password-toggle {
    flex-shrink: 0;
    width: 2.75rem;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0.375rem 0.375rem 0;
}

.auth-password-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.auth-signup-trust-badge {
    background: var(--color-bg-secondary, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
}

.auth-signup-trust-badge i {
    color: var(--color-accent, #ff5047);
}

.auth-signup-benefits h1 {
    color: var(--color-primary, #0f172a);
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.auth-signup-benefits .auth-signup-lead {
    font-size: 1.05rem;
    color: var(--color-text-secondary, #64748b);
    line-height: 1.65;
}

.auth-signup-benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 80, 71, 0.1);
    color: var(--color-accent, #ff5047);
    font-size: 1.2rem;
}

.auth-signup-benefit-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary, #0f172a);
}

.auth-signup-benefit-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary, #64748b);
}

.auth-signup-cta-box {
    background: var(--color-bg-secondary, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 16px;
    padding: 1rem 1.25rem;
}

.auth-page-shell .form-control:focus {
    border-color: var(--color-secondary) !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1) !important;
}

.auth-page-shell .form-check-input:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

@media (max-width: 576px) {
    .auth-password-input,
    .auth-page-shell input.form-control-lg[type="email"] {
        font-size: 16px;
        min-height: 48px;
    }

    .auth-password-toggle {
        min-width: 48px;
    }
}
