/* ===== auth.css — Pantalla de login / registro ===== */

/* ============================================================
   PANTALLA DE AUTENTICACIÓN
   ============================================================ */

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
}

.auth-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: var(--primary); top: -100px; left: -100px; }
.blob-2 { width: 380px; height: 380px; background: var(--purple); bottom: -120px; right: -80px; animation-delay: -4s; }
.blob-3 { width: 300px; height: 300px; background: var(--blue); top: 40%; left: 60%; animation-delay: -8s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}

.auth-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1000px, 92vw);
  min-height: 600px;
  background: var(--paper-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: pop-in 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-brand {
  flex: 1;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.auth-logo { height: 40px; margin-bottom: 24px; object-fit: contain; }
.auth-brand-title { font-size: 30px; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.5px; }
.auth-brand-sub { color: #cbd5e1; line-height: 1.6; font-size: 14.5px; max-width: 320px; }
.auth-brand-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 14px; }
.auth-brand-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #e2e8f0; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--green); }
.dot-yellow { background: var(--yellow); }
.dot-red { background: var(--red); }
.auth-illustration { margin-top: auto; max-width: 100%; opacity: 0.9; }

.auth-card {
  flex: 1;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
}

.auth-tabs {
  display: flex;
  background: var(--paper);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy-500);
  cursor: pointer;
  transition: all var(--transition);
}
.auth-tab.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

.auth-form { display: none; flex-direction: column; animation: fade-in 300ms ease; }
.auth-form.active { display: flex; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.auth-form-title { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.auth-form-sub { margin: 0 0 24px; color: var(--navy-500); font-size: 13.5px; }
.auth-hint { font-size: 12.5px; color: var(--navy-500); text-align: center; margin-top: 14px; }

/* Enlace "¿Olvidaste tu contraseña?" */
.auth-forgot-link {
  display: block;
  margin: 18px auto 0;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.auth-forgot-link:hover { color: var(--primary-dark); }

.shake { animation: shake 400ms; }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}

