/* =========================================================
   EstacionWeb — login.css
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800&display=swap');

:root {
    --grad-navy: linear-gradient(135deg, #334155 0%, #2563EB 100%);
    --blue-600: #2563EB;
    --azul-oscuro-logo: #1E3A8A;
    --azul-oscuro-logo-hover: #172554;
    --blue-700: #1D4ED8;
    --blue-soft: #DBEAFE;
    --coral: #DC2626;
    --coral-soft: #FEE2E2;
    --green-soft: #DCFCE7;
    --green: #16A34A;
    --text: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, sans-serif;
    background: linear-gradient(160deg, #E2E8F0 0%, #DCE6F5 55%, #EAF0F8 100%);
}

.sky-blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.b1 { width: 480px; height: 480px; background: #334155; top: -140px; left: -120px; opacity: 0.55; animation: float1 22s ease-in-out infinite; }
.b2 { width: 420px; height: 420px; background: #2563EB; bottom: -160px; right: -100px; opacity: 0.5; animation: float2 26s ease-in-out infinite; }
.b3 { width: 320px; height: 320px; background: #64748B; top: 30%; right: 8%; opacity: 0.3; animation: float3 19s ease-in-out infinite; }
.b4 { width: 260px; height: 260px; background: #94A3B8; bottom: 10%; left: 8%; opacity: 0.3; animation: float4 24s ease-in-out infinite; }

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, 80px) scale(1.08); }
    66% { transform: translate(-40px, 40px) scale(0.95); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-70px, -60px) scale(1.1); }
    66% { transform: translate(30px, -30px) scale(0.92); }
}
@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-90px, 70px); }
}
@keyframes float4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(80px, -60px); }
}
@media (prefers-reduced-motion: reduce) {
    .sky-blob { animation: none; }
}

.weather-icon-float { position: absolute; color: rgba(255,255,255,0.75); filter: drop-shadow(0 8px 20px rgba(30,41,59,0.15)); }

/* Contenedor original del template: ahora es el lienzo de fondo completo */
.contenedor { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.panel-izquierdo { display: none; } /* la marca ahora vive dentro del modal */
.panel-derecho { position: relative; z-index: 5; }

.login-box {
    width: 100%; max-width: 460px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(28px);
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(30,41,59,0.22);
    padding: 48px 44px;
    text-align: center;
}

.login-orb {
    width: 68px; height: 68px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--grad-navy);
    box-shadow: 0 10px 26px rgba(37,99,235,0.35);
    display: flex; align-items: center; justify-content: center;
}

.login-box h2 { font-family: 'Outfit', sans-serif; font-size: 25px; font-weight: 700; color: var(--text); margin: 0 0 4px; }

.mensaje-error, .mensaje-exito {
    font-size: 12.5px; font-weight: 600; border-radius: 12px; padding: 10px 14px; margin: 14px 0 0;
}
.mensaje-error { background: var(--coral-soft); color: var(--coral); }
.mensaje-exito { background: var(--green-soft); color: var(--green); }

.login-box form { text-align: left; margin-top: 24px; }

.login-box label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.login-box label:not(:first-child) { margin-top: 16px; }

.login-box input {
    width: 100%; padding: 12px 16px; border-radius: 999px;
    border: 1px solid var(--border); background: rgba(255,255,255,0.7);
    font-size: 13.5px; font-family: inherit; color: var(--text);
}
.login-box input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-soft); }

.campo-password { position: relative; }
.campo-password input { padding-right: 46px; }
.campo-password button.toggle-password {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: transparent; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    margin: 0; padding: 0; box-shadow: none;
}
.campo-password button.toggle-password:hover { background: rgba(100,116,139,0.1); color: var(--text-secondary); }
.toggle-password svg { width: 17px; height: 17px; }
.toggle-password .icon-off { display: none; }
.toggle-password.activo .icon-on { display: none; }
.toggle-password.activo .icon-off { display: block; }

.btn-submit-login {
    width: 100%; margin-top: 22px; padding: 13px;
    border: none; border-radius: 999px;
    background: var(--azul-oscuro-logo); color: #fff;
    font-size: 14px; font-weight: 700; font-family: inherit;
    cursor: pointer; box-shadow: 0 8px 20px rgba(37,99,235,0.28);
    transition: background 0.15s ease;
}
.btn-submit-login:hover { background: var(--azul-oscuro-logo-hover); }