/* ── modules/auth.css — pantallas de autenticación (rebrand "tero") ───────────
   Compartido por login, register y el flujo de recuperación de contraseña
   (todas standalone, no extienden base.html). */

.auth-body {
    min-height: 100vh; margin: 0; padding: 24px;
    font-family: 'Open Sans', system-ui, sans-serif; color: #244959;
    display: flex; align-items: center; justify-content: center;
    background-image: linear-gradient(310deg, #1d69a0, #78bedc);
}

.login-card, .register-card {
    background: #fff; border-radius: 1rem; width: 100%; max-width: 420px;
    padding: 2.5rem 2.25rem; box-shadow: 0 20px 27px 0 rgba(0, 0, 0, .12);
}
.register-card { max-width: 520px; }

.login-brand, .register-header .brand {
    font-weight: 700; font-size: 1.25rem; color: #244959; text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
}
.login-brand { display: flex; justify-content: center; margin-bottom: .25rem; }
.login-subtitle { text-align: center; font-size: .9rem; color: #6b8794; margin-bottom: 1.5rem; }

.register-header { text-align: center; margin-bottom: 1.5rem; }
.register-header .brand { margin-bottom: .75rem; }
.register-header h1 { font-size: 1.4rem; font-weight: 700; color: #244959; margin: 0 0 .35rem; }
.register-header p { font-size: .85rem; color: #6b8794; margin: 0; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: #244959; margin-bottom: .4rem; }
.form-group input {
    width: 100%; padding: .6rem .75rem; font-size: .9rem; color: #244959;
    border: 1px solid #d2d6da; border-radius: .5rem; background: #fff; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus { border-color: #1d69a0; box-shadow: 0 0 0 2px rgba(29, 105, 160,.25); }
.helptext { font-size: .72rem; color: #6b8794; margin-top: .35rem; }
.helptext ul { margin: 0; padding-left: 1.1rem; }
.errorlist { list-style: none; margin: .35rem 0 0; padding: 0; font-size: .78rem; color: #d1584f; }

.btn, .btn-submit {
    display: inline-block; width: 100%; text-align: center; cursor: pointer;
    padding: .7rem 1rem; font-size: .9rem; font-weight: 600; color: #fff; border: none;
    border-radius: .5rem; margin-top: .25rem; text-decoration: none;
    background-image: linear-gradient(310deg, #1d69a0, #78bedc);
    box-shadow: 0 4px 7px -1px rgba(29, 105, 160,.3);
    transition: transform .1s ease, box-shadow .15s ease;
}
.btn:hover, .btn-submit:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 7px 14px -3px rgba(29, 105, 160,.4); }

.login-error, .messages .message.error {
    background: #fbeae8; color: #d1584f; border: 1px solid #f3c9c4;
    border-radius: .5rem; padding: .6rem .8rem; font-size: .82rem; margin-bottom: 1rem;
}
.login-error p { margin: 0 0 .25rem; }
.login-error p:last-child { margin: 0; }

.login-footer, .register-footer { text-align: center; margin-top: 1.5rem; font-size: .82rem; color: #6b8794; }
.login-footer a, .register-footer a { color: #1d69a0; text-decoration: none; font-weight: 600; }
.login-footer a:hover, .register-footer a:hover { text-decoration: underline; }

.icon-ok { text-align: center; font-size: 2.6rem; color: #4c8c5a; margin: 1rem 0 .5rem; }

/* ── Login split-panel (SOLO login) ───────────────────────────────────────────
   register.html y el flujo de reset siguen usando .auth-body/.login-card sin
   cambios; el login usa este wrapper de dos columnas. */
html, body.auth-split { margin: 0; padding: 0; height: 100%; }
.auth-split {
    height: 100vh; min-height: 100vh; margin: 0; overflow: hidden;
    font-family: 'Open Sans', system-ui, sans-serif; color: #244959;
    display: grid; grid-template-columns: 1.05fr .95fr;
}
.auth-split-panel {
    background-image: linear-gradient(310deg, #1d69a0, #78bedc); color: #fff;
    padding: 48px 52px; display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}
.auth-split-panel::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.auth-split-panel::before { content: ""; position: absolute; left: -90px; bottom: -130px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.auth-split-panel > * { position: relative; z-index: 1; }
.asp-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; margin-bottom: 28px; }
/* El PNG del logo es navy sobre transparente; se invierte a blanco porque
   el panel izquierdo tiene fondo con gradiente (sin archivo blanco propio). */
.asp-brand-img { height: 48px; filter: brightness(0) invert(1); }
.login-brand-img { height: 40px; }
.auth-split-panel h2 { color: #fff; font-size: 2rem; line-height: 1.2; margin-bottom: 14px; max-width: 460px; }
.auth-split-panel p.tagline { color: rgba(255, 255, 255, .9); max-width: 440px; margin-bottom: 30px; }
.asp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.asp-list li { display: flex; align-items: center; gap: 13px; font-weight: 600; font-size: .95rem; }
.asp-list li .ic { width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }

.auth-split-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #f8f9fb; overflow-y: auto; }
.auth-split-form .login-card { box-shadow: 0 20px 40px -12px rgba(20,20,60,.12); border: 1px solid rgba(0,0,0,.05); padding: 2.5rem 2.25rem; max-width: 400px; background: #fff; border-radius: 1rem; }
.auth-split-form .login-brand { justify-content: flex-start; }
.auth-split-form .login-subtitle { text-align: left; }

/* Mockup dashboard preview en panel izquierdo */
.asp-mockup {
    background: rgba(255,255,255,.1); border-radius: 14px; padding: 18px;
    border: 1px solid rgba(255,255,255,.15); margin-top: 8px;
}
.asp-mockup .mock-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.asp-mockup .mock-head .mock-ic { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.asp-mockup .mock-head b { font-size: .85rem; }
.asp-mockup .mock-head span { font-size: .72rem; color: rgba(255,255,255,.6); }
.asp-mockup .mock-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.asp-mockup .mock-row:last-child { border-bottom: none; }
.asp-mockup .mock-row b { font-size: .9rem; }
.asp-mockup .mock-badge { font-size: .68rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.asp-mockup .mock-badge.ok { background: rgba(76,140,90,.25); color: #4c8c5a; }
.asp-mockup .mock-badge.warn { background: rgba(217,154,63,.25); color: #d99a3f; }

/* Micro-stats inferiores del panel */
.asp-stats { display: flex; gap: 28px; margin-top: 24px; }
.asp-stats .ms-item .ms-num { font-size: 1.5rem; font-weight: 800; }
.asp-stats .ms-item .ms-lbl { font-size: .72rem; color: rgba(255,255,255,.6); }

/* Footer del panel */
.asp-foot { font-size: .76rem; color: rgba(255,255,255,.5); margin-top: 20px; }

@media (max-width: 860px) {
    .auth-split { grid-template-columns: 1fr; overflow-y: auto; }
    .auth-split-panel { display: none; }
}
