.auth-page { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 6%, var(--bg)), var(--bg) 55%); }
:root[data-theme="dark"] .auth-page { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 9%, var(--bg)), var(--bg) 55%); }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.auth-volver { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 8px; border-radius: var(--r); color: var(--text-2); font-size: var(--t-sm); font-weight: 550; transition: color var(--d) var(--ease-out), background-color var(--d) var(--ease-out); }
.auth-volver svg { width: 18px; height: 18px; transition: transform var(--d) var(--ease-out); }
.auth-volver:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.auth-volver:hover svg { transform: translateX(-3px); }
.auth-main { display: grid; place-items: center; padding: 4px 16px 40px; }
.auth-card { width: 100%; max-width: 420px; padding: 32px; display: grid; gap: 16px; animation: rise-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.auth-card-ancha { max-width: 580px; gap: 14px; padding: 28px 32px; }
.auth-logo { justify-self: center; margin-bottom: 2px; }
.auth-logo img { height: 30px; }
.auth-head { display: grid; gap: 6px; text-align: center; margin-bottom: 6px; }
.auth-head h1 { font-size: 26px; font-weight: 720; letter-spacing: -0.026em; line-height: 1.15; }
.auth-head p { font-size: 15px; }
.campos { display: grid; gap: 14px 16px; }
@media (min-width: 620px) { .campos { grid-template-columns: 1fr 1fr; } .campos .ancho { grid-column: 1 / -1; } }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.soon { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 500; }
#msg:empty { display: none; }
.auth-foot { text-align: center; font-size: 14px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.label-row a { color: var(--brand-text); text-decoration: none; font-size: 13px; }
.label-row a:hover { text-decoration: underline; }
.ok-msg { margin: 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--text); font-size: 14px; }
.ok-msg a { font-weight: 600; }
.auth-card .btn-primary { transition: opacity var(--d) var(--ease-out), transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease; }
.auth-card .btn-primary:disabled { opacity: 0.45; box-shadow: none; }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px) scale(0.99); } }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 46px; }
.pass-ver { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: var(--r-sm); cursor: pointer; }
.pass-ver:hover, .pass-ver.on { color: var(--brand-text); }
.pass-ver svg { width: 18px; height: 18px; }
.fuerza { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 4px; align-items: center; margin-top: 2px; }
.fuerza i { height: 4px; border-radius: 2px; background: var(--surface-2); transition: background-color var(--d); }
.fuerza span { margin-left: 6px; font-size: var(--t-xs); color: var(--muted); min-width: 72px; text-align: right; line-height: 1.2; }
.fuerza[data-nivel="0"] i:nth-child(-n+1), .fuerza[data-nivel="1"] i:nth-child(-n+1) { background: var(--danger); }
.fuerza[data-nivel="2"] i:nth-child(-n+2) { background: var(--warn); }
.fuerza[data-nivel="3"] i:nth-child(-n+3) { background: var(--accent); }
.fuerza[data-nivel="4"] i { background: var(--ok); }
.acepto { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); line-height: 1.5; cursor: pointer; }
.acepto input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); cursor: pointer; }
@media (max-width: 480px) { .auth-card, .auth-card-ancha { padding: 24px 20px; } .auth-head h1 { font-size: 24px; } }
