[hidden] { display: none !important; }
:root { --ink: #071637; --blue: #2b56c8; --gold: #e3b25a; --paper: #f7f4ee; --muted: #5a6479; --line: #dfe2e8; --serif: 'Fraunces', Georgia, serif; --sans: 'Manrope', system-ui, sans-serif; }
.login { min-height: 100dvh; padding: 32px; display: grid; place-items: center; background: var(--paper); }
.login-frame { width: min(1120px, 100%); min-height: 660px; display: grid; grid-template-columns: 1.05fr 1fr; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 70px -35px #07163766; background: white; }
.login-brand { position: relative; isolation: isolate; background: radial-gradient(120% 90% at 10% 0%, #163a8a 0%, var(--ink) 55%, #040d24 100%); color: white; padding: 44px; display: grid; align-content: space-between; gap: 50px; }
.login-brand .matrix { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; z-index: -1; }
.login-brand img { height: 52px; width: auto; max-width: 100%; object-fit: contain; }
.login-brand h2 { font: 600 clamp(30px, 3.4vw, 44px)/1.12 var(--serif); max-width: 14ch; color: white; margin: 0 0 20px; }
.login-brand em { color: #f3d595; }
.login-brand p { color: #ffffffc7; max-width: 38ch; line-height: 1.7; }
.login-brand small { color: #ffffffb8; font-size: 12px; }
.login-form { padding: 44px clamp(24px, 4vw, 56px); display: grid; align-content: center; gap: 18px; min-width: 0; }
.login-form h1 { font: 600 30px/1.15 var(--serif); margin: 0; }
.login-form p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.login-switch { display: flex; gap: 4px; background: #efe9dc; padding: 4px; border-radius: 99px; justify-self: start; }
.login-switch button { border: 0; border-radius: 99px; background: transparent; padding: 9px 18px; color: var(--ink); font: 700 13px var(--sans); }
.login-switch button[aria-pressed="true"] { background: var(--ink); color: white; }
.login-form form, .login-form label { display: grid; gap: 10px; }
.login-form label, .login-form legend { font-size: 13px; font-weight: 700; }
.login-form input { width: 100%; min-width: 0; border: 1px solid #b6bfce; border-radius: 12px; padding: 13px; min-height: 48px; font: 500 15px var(--sans); background: white; color: var(--ink); }
.login-form button:not(.login-switch button) { width: 100%; border-radius: 12px; min-height: 48px; padding: 12px 18px; justify-self: stretch; font: 800 14px var(--sans); cursor: pointer; border: 0; background: var(--gold); color: var(--ink); }
.login-form #passkey-entrar, .login-form #otro-correo { background: white; border: 1px solid #b6bfce; }
.login-form #entrar { background: var(--ink); color: white; }
.login-form button:disabled { opacity: .6; cursor: default; }
.login-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.login-divider::before, .login-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.login-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.login-form legend { margin-bottom: 10px; }
.code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.code input { text-align: center; padding: 12px 0; font: 700 24px var(--sans); }
.login-help { font-size: 12px; color: var(--muted); }
.login-help a { color: var(--blue); font-weight: 700; }
#turnstile, #turnstile-login, #turnstile-solicitud { min-height: 65px; max-width: 100%; overflow: hidden; }
:is(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
body:has(#login:not([hidden])) > .cuenta-bar, body:has(#login:not([hidden])) > .cuenta-footer { display: none; }
.cuenta-wrap:has(#login:not([hidden])) { max-width: none; padding: 0; margin: 0; }
@media (max-width: 900px) {
  .login { padding: 0; align-items: start; background: white; }
  .login-frame { grid-template-columns: 1fr; min-height: 100dvh; border-radius: 0; box-shadow: none; align-content: start; }
  .login-brand { padding: 22px 24px; gap: 0; }
  .login-brand img { height: 40px; }
  .login-brand > div, .login-brand small { display: none; }
  .login-form { width: min(500px, 100%); margin: auto; padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
