/* ═══════════════════════════════════════════════════════════
   FOLIUM — AUTH
   Login · Registro · Recuperar contraseña.
   Carga sobre tokens.css + base.css + components.css.
   ═══════════════════════════════════════════════════════════ */

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 20% 30%, rgba(94, 106, 210, 0.06), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(142, 78, 198, 0.05), transparent 50%),
    var(--bg);
  position: relative;
}

.auth-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 32px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
}

/* ── Logo + tagline ──────────────────────────────────── */
.auth-logo-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
}
.auth-logo-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--logo-ink);
}
.auth-logo-mark svg {
  width: 56px;
  height: 56px;
  color: var(--logo-ink);
}
.auth-logo-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.auth-tagline {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
}

/* ── Título / subtítulo ──────────────────────────────── */
.auth-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
  text-align: left;
}
.auth-subtitle {
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 22px;
  line-height: 1.5;
}

/* ── Form ─────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.auth-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-field label .hint-link {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--accent-light);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}
.auth-field label .hint-link:hover {
  text-decoration: underline;
}

.auth-input {
  padding: 9px 11px;
  background: var(--bg);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.12s, box-shadow 0.12s;
  width: 100%;
}
.auth-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.auth-input::placeholder {
  color: var(--text-3);
}

/* Input con icono inline a la izquierda */
.auth-input-icon {
  position: relative;
}
.auth-input-icon input {
  padding-left: 34px;
}
.auth-input-icon .icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.auth-input-icon .icon svg {
  width: 13px;
  height: 13px;
}

/* ── Hint contextual debajo de un campo ──────────────── */
.auth-hint {
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 3px;
  line-height: 1.45;
}

/* ── Checkbox ─────────────────────────────────────────── */
.auth-checkbox-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
  margin-top: -4px;
}
.auth-checkbox {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 3px;
  background: transparent;
  flex-shrink: 0;
  cursor: pointer;
}
.auth-checkbox:checked,
.auth-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
}
.auth-checkbox:checked::after,
.auth-checkbox.checked::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
}

/* ── Botón principal ──────────────────────────────────── */
.auth-btn-primary {
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.12s;
  margin-top: 4px;
  width: 100%;
}
.auth-btn-primary:hover {
  background: var(--accent-2);
}
.auth-btn-primary svg {
  width: 13px;
  height: 13px;
}

/* ── Footer del card ──────────────────────────────────── */
.auth-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
}
.auth-footer a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
}
.auth-footer a:hover {
  text-decoration: underline;
}

/* ── Filas de 2 columnas (registro / reset) ──────────── */
.auth-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .auth-row-2 { grid-template-columns: 1fr; }
}

/* ── Plan cards (registro) ────────────────────────────── */
.auth-plans-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.auth-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
@media (max-width: 480px) {
  .auth-plans { grid-template-columns: 1fr; }
}
.auth-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.auth-plan:hover {
  border-color: var(--border-md);
}
.auth-plan input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.auth-plan input:checked + .auth-plan-name {
  color: var(--accent-light);
}
.auth-plan:has(input:checked) {
  background: var(--accent-bg);
  border-color: rgba(94, 106, 210, 0.45);
}
.auth-plan-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.auth-plan-price {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ── Estado "enviado" (recuperar) ─────────────────────── */
.auth-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 14px;
}
.auth-empty-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
}
.auth-empty-text {
  text-align: center;
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 6px;
}
.auth-empty-meta {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* ── Alertas (error / éxito) ──────────────────────────── */
.auth-alert {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.auth-alert.error {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--red);
}
.auth-alert.success {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
}
.auth-alert svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
