/* Página de acceso */
.auth-body { background: var(--bg); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--sp-10);
  color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, #388e3c 0%, #1b5e20 45%, #1d3a24 100%);
  overflow: hidden;
  isolation: isolate;
}
.auth-art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 1px, transparent 0) 0 0 / 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.auth-art::after { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(144, 238, 144, 0.28), transparent 65%); z-index: -1; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.auth-brand:hover { color: inherit; }
.auth-brand.mobile { display: none; color: var(--ink); }
.auth-visual { position: relative; height: 340px; max-width: 460px; width: 100%; margin: 0 auto; }
.av-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.95); color: #1d3a24; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.5); animation: float-slow 7s ease-in-out infinite; }
.av-card small { display: block; color: #646284; font-size: 12px; }
.av-1 { left: 0; top: 30px; }
.av-2 { right: 0; top: 130px; animation-delay: -2.4s; }
.av-3 { left: 30px; bottom: 10px; animation-delay: -4.6s; }
.av-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.av-badge { padding: 4px 10px; border-radius: 999px; background: #fff3d6; color: #8a5a00; font-weight: 800; font-size: 12px; }
.av-spark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #2e7d32, #90ee90); color: #fff; }
.av-ring { position: absolute; right: 70px; bottom: 60px; width: 96px; height: 96px; border-radius: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #ffe08a, #b7e4c7); color: #1d3a24; transform: rotate(8deg); box-shadow: 0 18px 40px -14px rgba(36, 51, 41, 0.45); }
.av-ring span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.av-ring strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.auth-quote { margin: 0; max-width: 440px; }
.auth-quote p { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.3; font-weight: 600; margin: 0; }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: var(--sp-8) var(--sp-5); background-image: var(--gradient-aurora); }
.auth-main:focus { outline: none; }
.auth-card { width: min(440px, 100%); padding: var(--sp-8); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop-in var(--dur-3) var(--ease); }
.auth-card h1 { font-size: var(--fs-2xl); margin-bottom: 6px; }
.auth-foot { margin-top: var(--sp-5); text-align: center; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.role-pick legend { margin-bottom: 6px; }
.role-opt input { position: absolute; opacity: 0; }
.role-opt span { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-3); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; height: 100%; }
.role-opt span svg { color: var(--brand-text); margin-bottom: 4px; }
.role-opt small { color: var(--muted); font-size: var(--fs-xs); }
.role-opt input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.role-opt input:focus-visible + span { box-shadow: var(--ring); }
.strength { display: flex; flex-direction: column; gap: 4px; margin-top: -6px; }
.strength-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.strength-bar span { display: block; height: 100%; width: 0; transition: width var(--dur-2), background var(--dur-2); }
.demo-box { margin-top: var(--sp-6); padding: var(--sp-4); border-radius: var(--r-md); border: 1.5px dashed var(--sun-strong); background: var(--sun-soft); }
.demo-box p { margin-bottom: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.success-orb { width: 76px; height: 76px; border-radius: 26px; display: grid; place-items: center; background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-brand); }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-brand.mobile { display: inline-flex; margin-bottom: var(--sp-5); }
  .auth-main { justify-content: flex-start; padding-top: calc(var(--sp-8) + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 480px) {
  .auth-card { padding: var(--sp-5); border-radius: var(--r-lg); }
  .role-pick { grid-template-columns: 1fr; }
}
