/* ============================================================
   AUTH.CSS — Login, registro, recuperar contraseña, verificación
   Layout de dos columnas: formulario a la izquierda, lateral visual
   ============================================================ */

.au-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

/* ============ PANEL FORMULARIO (izquierda) ============ */
.au-form-side {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 100vh;
}
.au-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
}
.au-topbar .brand { color: var(--ink); }
.au-back {
  font-size: 13.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.au-back:hover { color: var(--blue); }
.au-back svg { transition: transform .2s; }
.au-back:hover svg { transform: translateX(-3px); }

.au-form-wrap {
  max-width: 420px;
  width: 100%;
  margin: 48px auto;
  padding: 16px 0;
}
.au-kicker {
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
  display: inline-block;
}
.au-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin: 0 0 14px;
}
.au-title em { font-style: italic; color: var(--blue); }
.au-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px;
}

.au-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.au-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.au-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.1px;
}
.au-input {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 13px 14px;
  background: var(--warm);
  border: 0.5px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s, background .2s;
  outline: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.au-input:focus {
  border-color: var(--blue);
  background: #fff;
}
.au-input::placeholder { color: var(--muted-2); }
.au-input-group {
  position: relative;
}
.au-input-group .au-input { padding-right: 44px; width: 100%; box-sizing: border-box; }
.au-toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.au-toggle-pass:hover { color: var(--blue); background: var(--warm); }

.au-hint {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.au-error {
  font-size: 12.5px;
  color: #C4442E;
}

.au-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.au-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.au-check input { accent-color: var(--blue); }
.au-link {
  font-size: 13px;
  color: var(--blue);
  border-bottom: 0.5px solid rgba(12, 68, 124, 0.3);
  padding-bottom: 1px;
  transition: border-color .2s;
}
.au-link:hover { border-color: var(--blue); }

.au-submit {
  background: var(--blue);
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(12, 68, 124, 0.22);
  margin-top: 8px;
}
.au-submit:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(12, 68, 124, 0.35);
}

.au-sep {
  position: relative;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 24px 0;
}
.au-sep::before,
.au-sep::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 0.5px;
  background: var(--line);
}
.au-sep::before { left: 0; }
.au-sep::after { right: 0; }

.au-switch {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 28px;
}
.au-switch a {
  color: var(--blue);
  font-weight: 500;
}
.au-switch a:hover { text-decoration: underline; }

.au-footer {
  font-size: 12px;
  color: var(--muted);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.au-footer a {
  color: var(--muted);
  transition: color .2s;
}
.au-footer a:hover { color: var(--blue); }

/* ============ PANEL LATERAL (derecha, visual) ============ */
.au-visual-side {
  position: sticky;
  top: 0;
  height: 100vh;
  background:
    radial-gradient(700px 500px at 80% 10%, rgba(216, 90, 48, 0.15), transparent 60%),
    radial-gradient(500px 400px at 10% 90%, rgba(29, 158, 117, 0.12), transparent 55%),
    linear-gradient(135deg, #0A1E35, #0C447C);
  color: #fff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.au-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.au-visual-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.au-visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #85B7EB;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 32px;
}
.au-visual-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3BD9A4;
}
.au-visual-quote {
  margin-top: auto;
}
.au-visual-quote-text {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0 0 24px;
  max-width: 480px;
}
.au-visual-quote-text em {
  font-style: italic;
  color: #F5C4B3;
}
.au-visual-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.au-visual-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
}
.au-visual-name {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}
.au-visual-loc {
  font-size: 13px;
  color: #A8B8CC;
}
.au-visual-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.15);
}
.au-visual-stat-num {
  font-family: var(--font-serif);
  font-size: 30px;
  color: #fff;
  letter-spacing: -0.6px;
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.au-visual-stat-label {
  font-size: 11.5px;
  color: #A8B8CC;
  letter-spacing: 0.5px;
}

/* ============ PÁGINA DE ESTADO (verificación, recuperación enviada) ============ */
.au-state {
  text-align: center;
}
.au-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(29, 158, 117, 0.12);
  color: var(--wa);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.au-state-icon.pending {
  background: rgba(239, 159, 39, 0.12);
  color: #EF9F27;
}
.au-state-icon.info {
  background: var(--blue-soft);
  color: var(--blue);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .au-wrap { grid-template-columns: 1fr; }
  .au-visual-side { display: none; }
  .au-form-side { padding: 24px 20px; }
  .au-title { font-size: 30px; letter-spacing: -0.6px; }
  .au-form-wrap { margin: 32px auto; }
}
@media (max-width: 520px) {
  .au-form-side { padding: 20px 16px; min-height: auto; }
  .au-form-wrap { margin: 28px auto 24px; }
  .au-topbar .brand { font-size: 16px; }
  .au-topbar .brand-mark { width: 26px; height: 26px; }
  .au-back { font-size: 13px; }
  .au-kicker { font-size: 11px; letter-spacing: 2px; margin-bottom: 12px; }
  .au-title { font-size: 26px; letter-spacing: -0.5px; }
  .au-sub { font-size: 14.5px; margin-bottom: 24px; }
  .au-input { font-size: 14.5px; padding: 12px 13px; }
  .au-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .au-submit { padding: 13px 20px; font-size: 14.5px; }
  .au-sep { margin: 20px 0; }
  .au-switch { font-size: 13.5px; margin-top: 22px; }
  .au-footer { padding-top: 24px; font-size: 11.5px; gap: 10px; flex-direction: column; align-items: flex-start; }
}
