/* ============================================================
   GesHoy — auth.css (login / registro)
   ============================================================ */

body.auth { background: var(--bg); min-height: 100vh; }

.auth-layout { display: grid; grid-template-columns: 480px 1fr; min-height: 100vh; }

/* Panel de marca */
.auth-brand {
  background: var(--navy); color: var(--navy-text); padding: 48px 52px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.auth-brand::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(420px 300px at 20% 12%, rgba(56, 189, 248, .14), transparent 65%),
    radial-gradient(460px 340px at 85% 90%, rgba(99, 102, 241, .18), transparent 65%);
  pointer-events: none;
}
.auth-brand > * { position: relative; }
.auth-brand .logo { color: #fff; }
.auth-brand-mid { margin: auto 0; padding: 48px 0; }
.auth-brand-mid h2 { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -.02em; max-width: 20ch; }
.auth-brand-mid p { margin-top: 14px; color: var(--navy-muted); font-size: .98rem; max-width: 38ch; }
.auth-points { list-style: none; margin-top: 30px; display: grid; gap: 15px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: #CBD5E1; }
.auth-points svg { width: 19px; height: 19px; color: #34D399; flex: none; margin-top: 2px; }
.auth-quote {
  background: rgba(148, 163, 184, .07); border: 1px solid rgba(148,163,184,.15);
  border-radius: var(--radius-lg); padding: 20px 22px; font-size: .9rem; color: #CBD5E1;
}
.auth-quote .q-who { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.auth-quote .avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #fff; background: #4F46E5; flex: none; }
.auth-quote b { display: block; font-size: .85rem; color: #F1F5F9; }
.auth-quote span { font-size: .76rem; color: var(--navy-muted); }

/* Panel de formulario */
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.auth-card .sub { color: var(--muted); margin: 8px 0 30px; font-size: .95rem; }
.auth-card .sub a { color: var(--primary); font-weight: 600; }
.auth-card .sub a:hover { text-decoration: underline; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 20px; }
.auth-row .forgot { font-size: .85rem; color: var(--primary); font-weight: 600; }
.auth-row .forgot:hover { text-decoration: underline; }

.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 46px; }
.pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border-radius: 8px;
  transition: color .2s, background-color .2s;
}
.pass-toggle:hover { color: var(--ink); background: var(--bg-2); }
.pass-toggle svg { width: 18px; height: 18px; }

.pass-meter { display: flex; gap: 5px; margin-top: 8px; }
.pass-meter i { height: 4px; flex: 1; border-radius: 999px; background: var(--line); transition: background-color .3s; }
.pass-meter.s1 i:nth-child(-n+1) { background: var(--danger); }
.pass-meter.s2 i:nth-child(-n+2) { background: #F59E0B; }
.pass-meter.s3 i:nth-child(-n+3) { background: #10B981; }
.pass-meter.s4 i { background: var(--success); }

.auth-foot { margin-top: 34px; text-align: center; font-size: .8rem; color: var(--muted); }
.auth-foot a { color: var(--ink-3); font-weight: 500; }
.auth-foot a:hover { text-decoration: underline; }

.auth-alert {
  display: none; align-items: flex-start; gap: 10px; padding: 12px 15px; border-radius: 10px;
  background: var(--danger-soft); color: var(--danger); font-size: .88rem; font-weight: 500; margin-bottom: 18px;
  border: 1px solid #FECDD3;
}
.auth-alert.show { display: flex; }
.auth-alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-wrap { padding-top: 40px; align-items: flex-start; }
  .auth-mobile-logo { display: inline-flex !important; margin-bottom: 34px; }
}
.auth-mobile-logo { display: none; }
