/* =====================================================================
   VALAD · Acceso (registro e inicio de sesión)
   ===================================================================== */
body{ min-height:100dvh; }
.auth{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); min-height:100dvh; }
.auth-side{
  background:var(--ink); color:var(--bg); padding:clamp(28px,4vw,56px); display:flex; flex-direction:column; justify-content:space-between; gap:40px;
  position:relative; overflow:hidden;
}
.auth-side::after{ content:""; position:absolute; right:-160px; bottom:-160px; width:420px; height:420px; border-radius:50%; border:56px solid color-mix(in srgb,var(--accent) 45%,transparent); pointer-events:none; }
.auth-side .wordmark{ color:var(--bg); }
.auth-side .wordmark svg{ color:var(--accent-strong); }
:root:not([data-theme="dark"]) .auth-side .wordmark svg{ color:#7cc9c2; }
.auth-pitch{ position:relative; z-index:1; max-width:30ch; }
.auth-pitch h2{ font-size:clamp(30px,3.4vw,46px); line-height:1.05; letter-spacing:-.035em; font-weight:620; margin:0 0 28px; text-wrap:balance; }
.auth-pitch ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.auth-pitch li{ font-size:15.5px; color:color-mix(in srgb,var(--bg) 78%,transparent); line-height:1.45; }
.auth-pitch li b{ display:inline-block; min-width:66px; color:var(--bg); font-weight:620; }
.auth-side-foot{ position:relative; z-index:1; margin:0; font-size:13px; color:color-mix(in srgb,var(--bg) 60%,transparent); max-width:40ch; }

.auth-main{ display:flex; flex-direction:column; align-items:center; justify-content:center; padding:clamp(24px,5vw,64px) clamp(16px,4vw,48px); gap:18px; }
.auth-card{ width:100%; max-width:420px; }
.auth-card h1{ font-size:32px; letter-spacing:-.03em; line-height:1.1; font-weight:640; margin:0 0 8px; }
.lead{ margin:0 0 26px; color:var(--ink-2); font-size:15px; line-height:1.5; }
.step{ animation:stepIn var(--d-slow) var(--ease-out) both; }
@keyframes stepIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
label{ display:block; font-size:13px; font-weight:560; color:var(--ink-2); margin:14px 0 6px; }
.opt{ font-weight:400; color:var(--muted); }
input[type=email], input[type=text], select{
  width:100%; height:50px; padding:0 14px; border:1px solid var(--line-strong); border-radius:var(--r-sm); background:var(--surface); color:var(--ink);
  font:inherit; font-size:16px; transition:border-color var(--d-fast), box-shadow var(--d-fast);
}
select{ appearance:none; -webkit-appearance:none; background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%); background-position:calc(100% - 19px) 22px, calc(100% - 14px) 22px; background-size:5px 5px; background-repeat:no-repeat; padding-right:34px; }
input:focus, select:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent); }
input[aria-invalid="true"]{ border-color:var(--risk-vhigh); }
input::placeholder{ color:var(--muted); }
.code{ font-family:var(--font-mono); font-size:26px!important; letter-spacing:.5em; text-align:center; height:62px!important; padding-left:.5em!important; }
.two{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.check{ display:flex; gap:10px; align-items:flex-start; font-weight:450; font-size:13.5px; line-height:1.45; color:var(--ink-2); margin:14px 0 0; cursor:pointer; }
.check input{ width:18px; height:18px; flex:none; margin:1px 0 0; accent-color:var(--accent); }
.check a{ color:var(--accent-strong); }
.err{ margin:8px 0 0; font-size:13px; color:var(--risk-vhigh); min-height:0; }
.err:empty{ display:none; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px; height:50px; padding:0 20px; border-radius:var(--r-sm); border:1px solid transparent;
  font:inherit; font-size:15px; font-weight:600; cursor:pointer; text-decoration:none;
  transition:background-color var(--d-fast), border-color var(--d-fast), transform var(--d-instant) var(--ease-out), opacity var(--d-fast);
}
.btn:active{ transform:scale(.98); }
.btn:disabled{ opacity:.6; cursor:progress; }
.btn svg{ width:18px; height:18px; }
.btn-block{ width:100%; margin-top:20px; }
.btn-primary{ background:var(--ink); color:var(--bg); }
.btn-ghost{ background:var(--surface); color:var(--ink); border-color:var(--line-strong); }
@media (hover:hover){ .btn-primary:hover{ background:var(--accent-strong); } .btn-ghost:hover{ border-color:var(--ink-2); } }
:root[data-theme="dark"] .btn-primary:hover{ background:var(--accent); color:var(--accent-ink); }
.or{ display:flex; align-items:center; gap:12px; margin:22px 0 2px; color:var(--muted); font-size:12.5px; }
.or::before, .or::after{ content:""; flex:1; height:1px; background:var(--line); }
#googleBtn{ margin-top:14px; }
.row-links{ display:flex; justify-content:space-between; gap:12px; margin-top:16px; }
.link{ border:0; background:none; padding:4px 0; font:inherit; font-size:13.5px; font-weight:560; color:var(--accent-strong); cursor:pointer; text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.link:disabled{ color:var(--muted); cursor:default; text-decoration:none; }
.demo-flag{ margin:0 0 22px; padding:10px 12px; border-radius:var(--r-sm); background:var(--warn-bg); color:var(--warn-tx); font-size:12.5px; line-height:1.5; }
.auth-foot{ margin:0; font-size:13px; }
.auth-foot a{ color:var(--muted); }

@media (max-width:860px){
  .auth{ grid-template-columns:1fr; }
  .auth-side{ padding:22px 20px 26px; gap:18px; }
  .auth-side::after{ width:220px; height:220px; right:-90px; bottom:-120px; border-width:34px; }
  .auth-pitch h2{ font-size:24px; margin-bottom:14px; }
  .auth-pitch li{ font-size:14px; }
  .auth-pitch li b{ min-width:0; margin-right:4px; }
  .auth-side-foot{ display:none; }
  .auth-main{ justify-content:flex-start; padding-top:28px; }
  .two{ grid-template-columns:1fr; gap:0; }
}
