/* ====== Tema base (verde + negro) ====== */
:root {
  --primary: #22c55e;          /* Verde principal */
  --primary-hover: #16a34a;
  --text: #e6edf3;             /* Texto claro sobre fondo oscuro */
  --text-muted: #9fb2c3;
  --text-placeholder: #7aa4b6;
  --border: #1f2a34;
  --input-bg: #0b1218;
  --card-bg: #0f1419;
  /* Fondo con leve halo verde como en la app */
  --background: radial-gradient(1200px 800px at 70% -10%, rgba(34,197,94,.10), transparent), #0b0f12;
  --error: #e5484d;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

/* ====== Reset mínimo ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* ====== Layout ====== */
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ====== Contenedor principal ====== */
.form-wrapper {
  width: 100%;
  max-width: 420px;
}

.form-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
}

/* ====== Logo ====== */
.logo-container { text-align: center; }
.logo { max-width: 180px; height: auto; display: inline-block; }

/* ====== Botón Microsoft (lo dejamos blanco para contraste) ====== */
.socials-row { display: flex; justify-content: center; }

.socials-row > a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  width: 100%;
  min-height: 3rem;
  display: inline-flex;
  gap: 0.75rem;
  color: #111;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  background-color: #ffffff;
  border: 1px solid #d2d2d2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.05s ease, box-shadow 0.2s ease;
}
.socials-row > a:hover { background-color: #f4f4f4; }
.socials-row > a:active { transform: translateY(1px); }

/* ====== Divider ====== */
.divider {
  display: flex;
  flex-direction: row;
  color: var(--text-muted);
  gap: 10%;
  align-items: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1rem 0;
}
.divider-line {
  width: 40%;
  height: 1px;
  background: var(--border);
  opacity: 0.9;
}

/* ====== Botón verde ====== */
.my-form__button {
  background: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: 0 6px 18px rgba(34,197,94,.25);
  transition: background 0.2s ease, transform 0.05s ease, box-shadow 0.2s ease;
  text-align: center;
  cursor: pointer;
  width: 100%;
  min-height: 3rem;
  margin: 8px 0;
}
.my-form__button:hover { background-color: var(--primary-hover); box-shadow: 0 10px 24px rgba(34,197,94,.35); }
.my-form__button:active { transform: translateY(1px); }
.my-form__button[disabled] { opacity: .7; cursor: not-allowed; }

/* ====== Aviso ====== */
.warning-message {
  background-color: #122b1c;
  color: var(--text);
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.9rem;
  border: 1px solid #24553a;
}
.warning-message strong { color: var(--primary); }
.warning-message a { color: #bff6cf; text-decoration: underline; }

/* ====== Formulario ====== */
.my-form { display: grid; gap: 14px; }

.text-field {
  display: grid;
  gap: 8px;
  width: 100%;
}

.text-field label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.text-field input {
  color: var(--text);
  max-width: 100%;
  width: 100%;
  border: 1px solid var(--border);
  min-height: 3rem;
  letter-spacing: .03rem;
  outline: none;
  background: var(--input-bg);
  transition: .2s;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.text-field input::placeholder {
  color: var(--text-placeholder);
}

.text-field input:focus {
  border: 1px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(34,197,94,.28);
}

.error-message {
  display: none;
  font-size: 0.85rem;
  color: var(--error);
  margin-top: 4px;
}

.text-field input:user-invalid ~ .error-message,
.text-field input.user-touched:invalid ~ .error-message {
  display: block;
}

/* ====== Botón volver (en el form) ====== */
.link-back {
  background: transparent;
  color: var(--text-muted);
  border: none;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.95rem;
  width: 100%;
  text-align: center;
  margin-top: 4px;
}
.link-back:hover { color: var(--text); }

/* ====== Accesibilidad focus ====== */
:focus-visible {
  outline: 3px solid rgba(34,197,94,.55);
  outline-offset: 2px;
}

/* ====== Responsive ====== */
@media (max-width: 420px) {
  .form-side { padding: 20px; border-radius: 14px; }
  .logo { max-width: 150px; }
}
