/* Login + recuperar contraseña — misma paleta que registro / solicitud asesor */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@700&display=swap');

:root {
    --auth-cream: #f6f1e8;
    --auth-navy: #002b49;
    --auth-navy-mid: #003d66;
    --auth-gold: #ffd37b;
    --auth-gold-dark: #b3832d;
    --auth-text: #1b2d3a;
    --auth-muted: #3d4b55;
    --auth-border: #c9c2b4;
    --auth-success: #2e7d4e;
    --auth-danger: #b42318;
}

.auth-hero {
    background: var(--auth-cream);
    padding: 2.5rem 0 3rem;
    min-height: calc(100vh - 140px);
}

.auth-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.25rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .auth-hero {
        padding: 1.75rem 0 2rem;
    }

    .auth-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .auth-hero-grid--center {
        max-width: 28rem;
        margin: 0 auto;
    }

    .auth-hero-copy--hide-sm {
        display: none;
    }
}

/* Tablet (768-991px): centrar y acotar para que la tarjeta no quede excesivamente ancha */
@media (min-width: 768px) and (max-width: 991.98px) {
    .auth-hero-grid {
        max-width: 40rem;
        margin: 0 auto;
    }
}

/* Móvil (<576px): tarjeta y separaciones más compactas */
@media (max-width: 575.98px) {
    .auth-hero {
        padding: 1.25rem 0 1.75rem;
    }

    .auth-card {
        padding: 1.35rem 1.1rem;
    }

    .auth-card h2 {
        font-size: 1.5rem;
    }

    .auth-benefit {
        font-size: 0.92rem;
        padding: 0.8rem 0.9rem;
    }

    .auth-footer-links a,
    .auth-card-intro,
    .auth-lead {
        overflow-wrap: anywhere;
    }
}

.auth-badge {
    color: var(--auth-gold-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.auth-hero-copy h1 {
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    line-height: 1.12;
    color: var(--auth-navy);
    margin: 0 0 1.15rem;
    font-weight: 700;
}

.auth-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--auth-muted);
    max-width: 36rem;
    margin: 0 0 1.5rem;
}

.auth-benefits {
    display: grid;
    gap: 0.75rem;
}

.auth-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: #fff;
    padding: 0.95rem 1rem;
    border-left: 4px solid var(--auth-gold);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--auth-text);
}

.auth-benefit i {
    color: var(--auth-success);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.auth-card {
    background: #fff;
    padding: 2rem 1.75rem;
    border-radius: 0.875rem;
    box-shadow: 0 12px 35px rgba(0, 43, 73, 0.14);
}

.auth-card h2 {
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    color: var(--auth-navy);
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.auth-card-intro {
    color: var(--auth-muted);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0 0 1.25rem;
}

.auth-label {
    display: block;
    font-weight: 700;
    color: #233847;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}

.auth-card .form-control,
.auth-card input[type="email"],
.auth-card input[type="text"],
.auth-card input[type="password"] {
    display: block;
    width: 100%;
    padding: 0.72rem 0.85rem;
    font-size: 0.95rem;
    color: var(--auth-text);
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 0.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-card .form-control:focus,
.auth-card input:focus {
    border-color: var(--auth-navy);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 43, 73, 0.12);
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-alert {
    background: #fdecea;
    border: 1px solid #f5c2c0;
    color: #7a1c16;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: left;
}

.auth-alert p {
    margin: 0 0 0.25rem;
}

.auth-alert p:last-child {
    margin-bottom: 0;
}

.auth-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: rgba(255, 211, 123, 0.18);
    border-left: 3px solid var(--auth-gold);
    border-radius: 0.35rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--auth-muted);
    margin: 0 0 1.15rem;
    text-align: left;
}

.auth-note i {
    color: var(--auth-gold-dark);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.auth-btn-submit {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    background: var(--auth-navy);
    color: #fff;
    border: none;
    padding: 0.95rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    text-align: center;
}

.auth-btn-submit:hover {
    background: var(--auth-navy-mid);
    color: #fff;
}

.auth-btn-secondary {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
    text-align: center;
    padding: 0.55rem;
    font-size: 0.92rem;
    color: var(--auth-muted);
    text-decoration: none;
    background: transparent;
    border: none;
}

.auth-btn-secondary:hover {
    color: var(--auth-navy);
}

.auth-btn-outline {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--auth-navy);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 0.5rem;
}

.auth-btn-outline:hover {
    border-color: var(--auth-navy);
    color: var(--auth-navy-mid);
}

.auth-link-muted {
    display: block;
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--auth-muted);
    text-decoration: none;
}

.auth-link-muted:hover {
    color: var(--auth-navy);
    text-decoration: underline;
}

.auth-footer-links {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(201, 194, 180, 0.85);
    text-align: center;
    font-size: 0.95rem;
    color: var(--auth-muted);
}

.auth-footer-links a {
    color: var(--auth-navy);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer-links a:hover {
    color: var(--auth-navy-mid);
    text-decoration: underline;
}

.auth-staff-note {
    margin: 1rem 0 0;
    font-size: 0.82rem;
    color: var(--auth-muted);
}

.auth-staff-note a {
    color: var(--auth-navy-mid);
    font-weight: 600;
    text-decoration: none;
}

.auth-staff-note a:hover {
    text-decoration: underline;
}

/* Google */
.auth-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: #c5221f;
    border: none;
    margin-bottom: 0.25rem;
    transition: background 0.15s;
}

.auth-btn-google:hover {
    background: #a50e0e;
    color: #fff;
}

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--auth-muted);
    margin: 1.15rem 0;
    font-size: 0.82rem;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--auth-border);
}

.auth-separator::before {
    margin-right: 0.65rem;
}

.auth-separator::after {
    margin-left: 0.65rem;
}

/* Password eye */
.auth-pw-wrap {
    position: relative;
}

.auth-pw-wrap .form-control,
.auth-pw-wrap input {
    padding-right: 2.75rem;
}

.auth-pw-toggle {
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 0.35rem 0.45rem;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
}

.auth-pw-toggle:hover {
    color: var(--auth-navy);
}

.auth-help {
    font-size: 0.82rem;
    color: var(--auth-muted);
    margin-top: 0.35rem;
    line-height: 1.45;
}

.auth-success-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(46, 125, 78, 0.12);
    color: var(--auth-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin: 0 auto 1rem;
}

.auth-warn-box {
    background: rgba(255, 211, 123, 0.22);
    border: 1px solid rgba(179, 131, 45, 0.35);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: left;
    color: var(--auth-text);
}

.auth-warn-box .fw-bold {
    color: var(--auth-navy);
}
