* { box-sizing: border-box; margin: 0; padding: 0; }
body.auth-page { min-height: 100vh; font-family: "Manrope", Arial, sans-serif; color: var(--hc-ink); background: #f4f8fd; }
.auth-navbar { position: sticky; top: 0; }
.auth-shell { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 72px); margin: auto; padding: 36px 0; display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; }
.auth-visual { min-height: 590px; position: relative; overflow: hidden; border-radius: 22px 0 0 22px; box-shadow: 0 18px 45px rgba(21, 79, 137, .12); }
.auth-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: center; position: absolute; inset: 0; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,29,65,.02) 35%, rgba(3,34,75,.9)); }
.auth-visual-overlay { max-width: 500px; padding: 42px; position: absolute; left: 0; bottom: 0; z-index: 2; color: white; }
.auth-icon { width: 48px; height: 48px; margin-bottom: 18px; display: grid; place-items: center; color: var(--hc-blue); background: white; border-radius: 14px; font-size: 22px; }
.auth-visual h2 { margin-bottom: 12px; font-size: clamp(27px, 3vw, 39px); line-height: 1.18; letter-spacing: -.035em; }
.auth-visual p { max-width: 430px; color: rgba(255,255,255,.86); font-size: 13px; line-height: 1.65; }
.auth-visual ul { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 18px; list-style: none; font-size: 11px; font-weight: 700; }
.auth-visual li::before { content: "✓"; margin-right: 7px; color: #76efb2; }
.auth-card { padding: 42px clamp(30px, 5vw, 68px); display: flex; flex-direction: column; justify-content: center; background: rgba(255,255,255,.97); border: 1px solid var(--hc-line); border-radius: 0 22px 22px 0; box-shadow: 0 18px 45px rgba(21,79,137,.12); position: relative; }
.auth-card-icon { width: 48px; height: 48px; margin-bottom: 14px; display: grid; place-items: center; color: var(--hc-blue); background: #e9f4ff; border-radius: 50%; font-size: 22px; }
.auth-kicker { color: var(--hc-blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-card h1 { margin: 5px 0 7px; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; letter-spacing: -.035em; }
.auth-subtitle { color: var(--hc-muted); font-size: 12px; line-height: 1.55; }
.auth-card form { margin-top: 24px; display: grid; gap: 15px; }
.auth-field { display: grid; gap: 7px; }
.auth-field.hidden { display: none; }
.auth-field label { color: #344861; font-size: 11px; font-weight: 800; }
.auth-field small { color: var(--hc-muted); font-size: 9px; }
.auth-input { min-height: 45px; padding: 0 13px; display: flex; align-items: center; gap: 10px; color: #7990aa; background: #fbfdff; border: 1px solid #cddceb; border-radius: 9px; transition: border-color .2s, box-shadow .2s, background .2s; }
.auth-input:focus-within { color: var(--hc-blue); background: #fff; border-color: var(--hc-blue); box-shadow: 0 0 0 4px rgba(8,124,240,.1); }
.auth-input input,.auth-input select { min-width: 0; width: 100%; height: 43px; color: var(--hc-ink); background: transparent; border: 0; outline: 0; font: 500 12px "Manrope",Arial,sans-serif; }
.auth-input select { cursor: pointer; }
.password-toggle { padding: 6px; color: var(--hc-blue); background: transparent; border: 0; font: 800 10px "Manrope",Arial,sans-serif; cursor: pointer; }
.auth-submit { min-height: 46px; margin-top: 4px; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 24px; color: white; background: linear-gradient(100deg,var(--hc-blue-dark),var(--hc-blue),var(--hc-cyan)); border: 0; border-radius: 9px; box-shadow: 0 10px 22px rgba(8,124,240,.2); font: 800 12px "Manrope",Arial,sans-serif; cursor: pointer; transition: transform .2s,box-shadow .2s,opacity .2s; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 27px rgba(8,124,240,.28); }
.auth-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.form-message { min-height: 0; padding: 0; display: none; border-radius: 8px; font-size: 11px; line-height: 1.45; }
.form-message.show { padding: 9px 11px; display: block; color: #a03030; background: #fff0f0; border: 1px solid #f3caca; }
.form-message.success { color: #08783f; background: #e9f9f0; border-color: #bde8cf; }
.auth-switch { margin-top: 18px; color: var(--hc-muted); text-align: center; font-size: 11px; }
.auth-switch a { color: var(--hc-blue); font-weight: 800; }
.system-status { margin: 20px auto 0; padding: 7px 12px; display: inline-flex; align-items: center; gap: 8px; color: #098c4b; background: #e0f8eb; border-radius: 999px; font-size: 9px; font-weight: 800; }
.system-status i { width: 7px; height: 7px; background: #16ba69; border-radius: 50%; }
.register-card { padding-top: 30px; padding-bottom: 30px; }
.register-card form { margin-top: 16px; gap: 10px; }
.register-card .auth-input { min-height: 40px; }
.register-card .auth-input input,.register-card .auth-input select { height: 38px; }

@media (max-width: 900px) {
    .auth-shell { width: min(650px, calc(100% - 32px)); grid-template-columns: 1fr; padding: 26px 0 45px; }
    .auth-visual { min-height: 310px; border-radius: 20px 20px 0 0; }
    .auth-visual-overlay { padding: 28px; }
    .auth-visual h2 { font-size: 29px; }
    .auth-card { padding: 38px clamp(22px,8vw,60px); border-radius: 0 0 20px 20px; }
}

@media (max-width: 520px) {
    .auth-navbar .hc-nav-button { padding: 0 10px; font-size: 9px; }
    .auth-shell { width: calc(100% - 22px); padding-top: 12px; }
    .auth-visual { min-height: 225px; }
    .auth-visual-overlay { padding: 20px; }
    .auth-icon,.auth-visual p,.auth-visual ul { display: none; }
    .auth-visual h2 { margin: 0; font-size: 24px; }
    .auth-card { padding: 30px 20px; }
    .auth-card-icon { width: 42px; height: 42px; }
}

/* Acceso v3 */
.auth-page { background:radial-gradient(circle at 15% 15%,#e5f3ff 0,transparent 32%),#f4f8fd !important; }
.auth-shell { max-width:1080px; grid-template-columns:.82fr 1.18fr; padding:42px 0; }
.auth-visual { min-height:600px; background:linear-gradient(155deg,#0671e4 0%,#078ff0 50%,#08bad1 100%); }
.auth-visual > img { height:43%; top:auto; opacity:.92; object-position:center 38%; }
.auth-visual::after { background:linear-gradient(180deg,rgba(5,113,225,0) 52%,rgba(3,67,139,.42)); }
.auth-visual-overlay { max-width:none; padding:42px; top:0; bottom:auto; }
.auth-visual h2 { font-size:30px; }
.auth-visual p { font-size:12px; }
.auth-visual ul { display:grid; gap:12px; }
.auth-card { padding-inline:clamp(34px,5vw,72px); }
.auth-card::before { content:""; width:56px; height:4px; position:absolute; top:0; left:50%; transform:translateX(-50%); background:linear-gradient(90deg,var(--hc-blue),var(--hc-cyan)); border-radius:0 0 5px 5px; }
.auth-card h1 { font-size:34px; }
@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-visual{min-height:280px}.auth-visual>img{width:46%;height:100%;left:auto}.auth-visual-overlay{width:58%;padding:28px}.auth-visual h2{font-size:25px}}
@media(max-width:520px){.auth-visual>img{width:100%;opacity:.28}.auth-visual-overlay{width:100%}.auth-visual h2{font-size:24px}}
