/* Identidad: azul-petróleo con menú tipo píldora en glassmorphism.
   Tipografía Poppins (300 texto, 600 títulos/CTAs). */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --deep: #2A357F;
  --teal: #3F768D;
  --teal-dark: #2a5363;
  --sky: #91bcce;
  --ink: #16202b;
  --mist: #f5f5f5;
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 0 40px;
  background: #071922;
  font-family: 'Poppins', -apple-system, sans-serif;
  color: var(--mist);
}

main.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

/* ---- tarjeta ---- */
.card {
  width: 100%;
  max-width: 560px;
  background: #185977;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(120%);
  border-radius: 20px;
  padding: 30px 40px 28px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
  position: relative;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.2;
  color: #fff;
}

.card > h1::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sky), transparent);
}

.subtitle {
  margin: 0 0 18px;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(245,245,245,0.75);
}

.form { display: flex; flex-direction: column; gap: 13px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  min-width: 0;
}
.form-row label { min-width: 0; }
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(245,245,245,0.9);
}

input {
  width: 100%;
  min-width: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 15px;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder { color: #8a94a0; }

input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(145,188,206,0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, background 0.2s ease, color 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--sky), var(--teal));
  color: #0f2530;
  width: 100%;
}
.btn-primary:hover { background: var(--sky); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: rgba(245,245,245,0.55);
  font-size: 12px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

.social-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) {
  .social-buttons { grid-template-columns: 1fr; }
}

.btn-social {
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.3);
  width: 100%;
  font-weight: 500;
  font-size: 13.5px;
  padding: 11px 14px;
  white-space: nowrap;
}
.btn-social:hover { background: #fff; color: var(--teal-dark); }

.fineprint {
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 300;
  color: rgba(245,245,245,0.55);
  text-align: center;
  line-height: 1.5;
}

.alert {
  font-size: 13.5px;
  font-weight: 400;
  padding: 10px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  line-height: 1.4;
  text-align: center;
}
.alert.success { background: rgba(145,188,206,0.2); color: #d8ecf3; border: 1px solid rgba(145,188,206,0.4); }
.alert.error { background: rgba(220,120,120,0.18); color: #ffd9d9; border: 1px solid rgba(220,120,120,0.4); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
