:root {
  --bg-deep: #064e3b;
  --bg-deeper: #022c22;
  --gold: #d4a24c;
  --gold-soft: #e6c789;
  --cream: #fdfbf5;
  --ink: #0f172a;
  --ink-soft: #475569;
  --danger: #b91c1c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-deep);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Fondo con "raíces" sutiles */
.raiz-root {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  position: relative;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(212, 162, 76, 0.15), transparent 60%),
    radial-gradient(900px 500px at 85% 90%, rgba(212, 162, 76, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deeper) 100%);
}

/* Tarjeta principal */
.raiz-card {
  width: 100%;
  max-width: 420px;
  background: var(--cream);
  border-radius: 28px;
  padding: 40px 32px 32px;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(212, 162, 76, 0.35) inset;
  text-align: center;
  animation: raiz-entrance 500ms cubic-bezier(0.2, 0.9, 0.3, 1.05) both;
}

@keyframes raiz-entrance {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo */
.raiz-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold), var(--gold-soft));
  color: var(--bg-deeper);
  box-shadow: 0 8px 20px -8px rgba(212, 162, 76, 0.7);
  animation: raiz-pulse 2s ease-in-out 600ms 1;
}

.raiz-logo svg { width: 30px; height: 30px; }

@keyframes raiz-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* Tipografía */
.raiz-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}

.raiz-subtitle {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.raiz-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 162, 76, 0.5), transparent);
  margin: 4px 0 20px;
}

.raiz-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

/* Contenedor del botón Google */
.raiz-google {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

/* Error */
.raiz-error {
  margin-top: 4px;
  padding: 10px 12px;
  background: #fef2f2;
  color: var(--danger);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}

/* Legal */
.raiz-legal {
  margin-top: 16px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #94a3b8;
}

/* Footer */
.raiz-footer {
  margin-top: 28px;
  color: rgba(230, 199, 137, 0.65);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}