/* Acceso con la identidad visual de ContaApp. */
* { box-sizing: border-box; }
body.login-page { margin: 0; min-height: 100vh; min-height: 100svh; padding: 48px 28px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse at 10% 5%, #253d79 0, transparent 55%), #111d42; color: var(--ca-texto); font-family: var(--ca-fuente); -webkit-font-smoothing: antialiased; }
.login-shell { display: grid; grid-template-columns: 1.08fr 1fr; width: 100%; max-width: 1120px; background: #fff; border: 1px solid #ffffff24; border-radius: 28px; overflow: hidden; box-shadow: 0 32px 90px #050e2b50; }
.login-presentacion { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 44px 44px 30px; overflow: hidden; background: radial-gradient(ellipse at 90% 85%, #12627d88, transparent 65%), #172554; color: #fff; }
.login-presentacion::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#ffffff05 1px, transparent 1px), linear-gradient(90deg, #ffffff05 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(transparent, #000); }
.login-logo { width: 176px; height: auto; display: block; }
.login-mensaje { margin-top: 54px; }
.login-etiqueta { margin: 0 0 16px; font-size: 10px; letter-spacing: .16em; font-weight: 700; line-height: 1.5; }
.login-mensaje .login-etiqueta { color: #b1c3eb; }
.login-mensaje h1 { margin: 0; font-size: clamp(28px, 3vw, 37px); line-height: 1.25; letter-spacing: -.045em; font-weight: 700; }
.login-mensaje h1 span { color: #6ce0ee; }
.login-mensaje > p:last-child { margin: 20px 0 0; color: #bfcdea; font-size: 13px; line-height: 1.8; }
.login-ilustracion { display: block; width: calc(100% + 34px); max-width: none; height: auto; margin: 10px -17px 6px; }
.login-firma { margin-top: auto; display: flex; align-items: center; gap: 9px; color: #c0cde5; font-size: 10px; line-height: 1.6; }
.login-firma > span { width: 6px; height: 6px; border-radius: 50%; background: #37d4bc; box-shadow: 0 0 0 4px #37d4bc14; }
.login-acceso { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 64px 56px 26px; }
.login-formulario { width: 100%; max-width: 340px; margin-block: auto; }
.login-icono { width: 44px; height: 44px; display: grid; place-items: center; background: #eff5ff; color: #1d4ed8; border: 1px solid #e1eafa; border-radius: 13px; margin-bottom: 28px; }
.login-icono svg { width: 23px; height: 23px; }
.login-acceso .login-etiqueta { color: #64748b; margin-bottom: 10px; }
.login-acceso h2 { font-size: 25px; font-weight: 700; letter-spacing: -.045em; margin: 0; line-height: 1.4; }
.login-introduccion { margin: 10px 0 30px; color: #64748b; font-size: 12px; line-height: 1.7; }
.login-campo { margin-bottom: 20px; }
.login-campo label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 9px; color: #334155; }
.login-control { position: relative; }
.login-input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d8e0eb; border-radius: 9px; background: #fff; font: inherit; font-size: 14px; color: #0f172a; outline: none; transition: border-color .18s, box-shadow .18s; }
.login-input:hover { border-color: #a5b6d0; }
.login-input:focus { border-color: #1d4ed8; box-shadow: 0 0 0 3px #1d4ed813; }
.login-input[aria-invalid='true'] { border-color: #dc2626; }
.login-control-clave .login-input { padding-right: 50px; }
.login-ver-clave { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 7px; background: transparent; color: #64748b; cursor: pointer; display: grid; place-items: center; }
.login-ver-clave[hidden] { display: none; }
.login-ver-clave:hover { background: #f1f5f9; color: #1d4ed8; }
.login-ver-clave svg { width: 19px; height: 19px; }
.login-ojo-tachado { display: none; }
.login-ver-clave[aria-pressed='true'] .login-ojo-tachado { display: block; }
.login-enviar { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; padding: 13px 18px; border: 1px solid #1d4ed8; border-radius: 9px; background: #1d4ed8; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 5px 12px #1d4ed81a; transition: background .18s, box-shadow .18s; }
.login-enviar:hover { background: #1e40af; box-shadow: 0 6px 16px #1d4ed82b; }
.login-enviar svg { width: 18px; height: 18px; }
.login-ver-clave:focus-visible, .login-enviar:focus-visible { outline: 3px solid #06b6d4; outline-offset: 3px; }
.login-pie-formulario { text-align: center; margin: 20px 0 0; color: #64748b; font-size: 10px; line-height: 1.6; }
.login-producto { display: flex; gap: 6px; align-items: center; margin-top: 45px; font-size: 10px; color: #475569; font-weight: 700; }
.login-producto span { color: #64748b; font-weight: 400; }
.login-copyright { margin-top: 24px; text-align: center; max-width: 100%; color: #b5c3dd; font-size: 10px; line-height: 1.8; }
.login-logo-movil { display: none; }
.login-error-general { margin-bottom: 22px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 9px; background: #fff7f7; color: #991b1b; font-size: 12px; line-height: 1.65; }
.login-error-general ul, .login-error-campo ul { list-style: none; margin: 0; padding: 0; }
.login-error-campo { color: #b91c1c; font-size: 11px; line-height: 1.6; margin-top: 6px; }
@media(min-width: 1500px) { .login-shell { max-width: 1180px; } .login-presentacion { padding: 48px 50px 34px; } .login-acceso { padding-inline: 64px; } }
@media(max-width: 950px) { .login-presentacion { padding: 36px 30px 28px; } .login-mensaje { margin-top: 45px; } .login-acceso { padding: 44px 32px 24px; } .login-mensaje h1 { font-size: 30px; } }
@media(max-width: 720px) { body.login-page { padding: 28px 18px 20px; } .login-shell { display: block; max-width: 440px; border-radius: 22px; } .login-presentacion { display: none; } .login-acceso { padding: 36px 30px 24px; } .login-logo-movil { display: block; width: 165px; height: auto; margin: 0 auto 38px; } .login-icono { display: none; } .login-acceso h2 { font-size: 24px; } .login-formulario { max-width: none; } .login-input { font-size: 16px; } .login-producto { margin-top: 32px; } .login-copyright { max-width: 390px; font-size: 10px; margin-top: 20px; } }
@media(max-width: 360px) { body.login-page { padding-inline: 12px; } .login-acceso { padding-inline: 23px; } .login-acceso h2 { font-size: 22px; } }
/* En notebooks, adapta la composición a la altura útil del navegador. */
@media(min-width: 721px) and (max-height: 800px) {
    body.login-page { padding: 18px 24px 14px; }
    .login-shell { max-width: 1040px; border-radius: 22px; }
    .login-presentacion { padding: 28px 34px 20px; }
    .login-logo { width: 154px; }
    .login-mensaje { margin-top: 22px; }
    .login-mensaje .login-etiqueta { margin-bottom: 10px; }
    .login-mensaje h1 { font-size: 29px; }
    .login-mensaje > p:last-child { margin-top: 12px; }
    .login-ilustracion { width: 100%; height: clamp(90px, calc(100svh - 450px), 220px); object-fit: contain; margin: 8px 0 6px; }
    .login-acceso { padding: 28px 42px 18px; }
    .login-icono { display: none; }
    .login-acceso .login-etiqueta { margin-bottom: 8px; }
    .login-acceso h2 { font-size: 24px; }
    .login-introduccion { margin: 6px 0 20px; }
    .login-campo { margin-bottom: 14px; }
    .login-campo label { margin-bottom: 7px; }
    .login-input { height: 44px; }
    .login-ver-clave { top: 2px; }
    .login-enviar { min-height: 44px; margin-top: 20px; padding-block: 11px; }
    .login-pie-formulario { margin-top: 14px; }
    .login-producto { margin-top: 20px; }
    .login-copyright { margin-top: 12px; }
    .login-error-general { margin-bottom: 14px; padding: 10px 12px; }
}
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
