/* =============================================================
   login.css — Estilos de la página de login
   ============================================================= */

body {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ── Fondo geométrico animado ───────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(26,86,219,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 90%, rgba(124,58,237,0.06) 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(10,15,30,0.012) 40px,
      rgba(10,15,30,0.012) 41px
    );
  z-index: 0;
  pointer-events: none;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* ── Card de login ──────────────────────────────────────────── */
.login-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 460px;
  padding: 48px 44px;
  animation: slideUp .5s cubic-bezier(.22,1,.36,1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Escudo / logo ──────────────────────────────────────────── */
.shield {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 8px 24px rgba(26,86,219,0.3);
  position: relative;
}
.shield svg { width: 32px; height: 32px; }
.shield::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 26px;
  border: 2px solid rgba(26,86,219,0.2);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0; transform: scale(1.15); }
}

.app-name {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  text-align: center;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.tagline {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 32px;
}

/* ── Alertas ────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.alert.error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert.warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert.info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ── Sección OAuth ──────────────────────────────────────────── */
.oauth-section h2 {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
}

/* ── Botones OAuth ──────────────────────────────────────────── */
.oauth-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  margin-bottom: 12px;
}
.oauth-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(26,86,219,0.12);
  transform: translateY(-1px);
}
.oauth-btn:active { transform: translateY(0); }
.oauth-btn svg,
.oauth-btn img { width: 22px; height: 22px; flex-shrink: 0; }
.btn-label  { flex: 1; text-align: left; }
.btn-arrow  { color: var(--muted); font-size: 18px; }

/* ── Badges de seguridad ────────────────────────────────────── */
.security-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}
.sec-badge span { font-size: 14px; }

/* ── Indicador de sesión ────────────────────────────────────── */
.session-info {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #14532d;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 12px;
  position: relative;
  z-index: 1;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 500px) {
  .login-card { padding: 36px 24px; }
  .app-name   { font-size: 24px; }
}
@media (max-width: 360px) {
  .login-card { padding: 28px 18px; border-radius: 18px; }
}
