/* Reservas Internacionales · Auth split (form left | image right) */
:root {
    --ri-bg: #0f172a;
    --ri-primary: #3b82f6;
    --ri-accent: #06b6d4;
    --ri-text: #f1f5f9;
    --ri-muted: #94a3b8;
}

html {
    height: 100%;
}

body.auth-page {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100% !important;
    height: 100% !important;
    background: #0f172a !important;
    color: #f1f5f9 !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    /* Evitar el centrado viejo del CSS anterior */
    display: block !important;
    align-items: stretch !important;
}

/* Contenedor principal: fila en desktop, columna en móvil */
.auth-split {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
}

.auth-form-panel {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.25rem 2.5rem;
    background: #0f172a !important;
    order: 1;
}

.auth-form-inner {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* Imagen: oculta en móvil */
.auth-visual-panel {
    display: none !important;
    order: 2;
    position: relative;
    overflow: hidden;
    background: #0b1220;
    padding: 0 !important;
    margin: 0 !important;
}

/* ===== Desktop: uno al lado del otro ===== */
@media (min-width: 768px) {
    .auth-split {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
    }

    .auth-form-panel {
        flex: 0 0 42% !important;
        width: 42% !important;
        max-width: 42% !important;
        min-height: 100vh !important;
        order: 1 !important;
    }

    .auth-visual-panel {
        display: block !important;
        flex: 0 0 58% !important;
        width: 58% !important;
        max-width: 58% !important;
        min-height: 100vh !important;
        order: 2 !important;
    }
}

@media (min-width: 1200px) {
    .auth-form-panel {
        flex: 0 0 40% !important;
        width: 40% !important;
        max-width: 40% !important;
        padding-left: 3rem;
        padding-right: 3rem;
    }
    .auth-visual-panel {
        flex: 0 0 60% !important;
        width: 60% !important;
        max-width: 60% !important;
    }
}

.auth-visual-panel img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    border: 0;
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(15,23,42,0.2) 0%, rgba(15,23,42,0.55) 50%, rgba(15,23,42,0.88) 100%),
        linear-gradient(90deg, rgba(15,23,42,0.45) 0%, transparent 35%);
    pointer-events: none;
    z-index: 1;
}

.auth-visual-caption {
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 2.5rem;
    z-index: 2;
    color: #f8fafc;
}
.auth-visual-caption h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}
.auth-visual-caption p {
    color: #cbd5e1;
    margin: 0;
    max-width: 400px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.auth-visual-placeholder {
    width: 100%;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 50% at 60% 30%, rgba(56,189,248,0.22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(99,102,241,0.18), transparent 50%),
        linear-gradient(165deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(226,232,240,0.28);
    font-size: 4rem;
}

.auth-brand {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}
.auth-brand a {
    color: #f1f5f9;
    text-decoration: none;
}
.auth-brand .accent {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 1.25rem 0 0.35rem;
    color: #f8fafc !important;
}
.auth-subtitle {
    color: #94a3b8 !important;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.form-label {
    color: #e2e8f0 !important;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-control {
    background: #0b1220 !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9;
    border-radius: 0.6rem;
    padding: 0.7rem 0.95rem;
}

.form-control:focus {
    background: #0b1220 !important;
    border-color: #3b82f6 !important;
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2);
}

.form-control::placeholder {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b;
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #f1f5f9 !important;
    transition: background-color 9999s ease-in-out 0s;
    box-shadow: 0 0 0 1000px #0b1220 inset !important;
}

.btn-ri {
    background: linear-gradient(135deg, #06b6d4, #3b82f6) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 0.65rem;
    padding: 0.75rem 1rem;
}
.btn-ri:hover {
    filter: brightness(1.08);
    color: #fff !important;
}

.auth-link {
    color: #7dd3fc !important;
    text-decoration: none;
}
.auth-link:hover { color: #bae6fd !important; text-decoration: underline; }

.text-muted-ri { color: #94a3b8 !important; }

.auth-footer-links {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #94a3b8;
}
.auth-footer-links a {
    color: #94a3b8;
    text-decoration: none;
}
.auth-footer-links a:hover { color: #e2e8f0; }

.alert { border-radius: 0.65rem; }


/* contrast boost v3 */
.form-label {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
}
.auth-subtitle,
.text-muted-ri {
    color: #cbd5e1 !important;
}
.auth-footer-links,
.auth-footer-links a {
    color: #94a3b8 !important;
}
.auth-footer-links a:hover {
    color: #e2e8f0 !important;
}
.auth-title {
    color: #ffffff !important;
}
