/* ====== Estilos para página de Registro ====== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  background: 
    radial-gradient(ellipse at 20% 30%, rgba(0, 150, 255, 0.55), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(30, 90, 255, 0.55), transparent 60%),
    radial-gradient(ellipse at 60% 20%, rgba(0, 200, 255, 0.35), transparent 70%),
    radial-gradient(ellipse at 10% 90%, rgba(40, 120, 255, 0.45), transparent 70%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.08), transparent 70%),
    linear-gradient(145deg, #0A1A5E 0%, #102CA8 40%, #1A3FF0 100%);
  background-blend-mode: screen, screen, overlay, overlay, soft-light, normal;

  padding: 20px;
}

/* TARJETA PRINCIPAL COMPACTA */
.auth-page {
  width: min(420px, 100% - 40px);
  background: white;
  border-radius: 22px;
  padding: 22px 26px 20px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.30);
}

.login-header {
  text-align: center;
  margin-bottom: 16px;
}

.header-icon {
  width: 72px;
  height: 72px;
  background: #eff6ff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.30);
}

.header-icon svg {
  width: 34px;
  height: 34px;
  fill: #2563eb;
}

h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #020617;
}

.login-header p {
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
}

/* ALERTAS */
.alert {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 14px;
  text-align: center;
}

.alert.error {
  background: #fee2e2;
  color: #b91c1c;
}

.alert.exito {
  background: #dcfce7;
  color: #166534;
}

/* INPUTS */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.label {
  font-size: 12px;
  font-weight: 500;
  color: #0f172a;
}

.input-wrapper {
  position: relative;
}

.icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #94a3b8;
}

.icon svg {
  width: 16px;
  height: 16px;
}

.input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  padding: 10px 14px 10px 40px;
  background: #f8fafc;
  font-size: 13px;
  transition: 0.2s ease;
}

.input::placeholder {
  color: #94a3b8;
}

.input:focus {
  background: white;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.20);
}

.toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #2563eb;
  font-size: 11px;
  cursor: pointer;
}

.helper {
  font-size: 11px;
  color: #94a3b8;
}

/* BOTÓN */
.btn-primary {
  padding: 8px 16px;
  border-radius: 999px;
  background: #2563eb;
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.40);
  transition: 0.15s;
  width: 100%;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.link {
  font-size: 13px;
  text-align: center;
  display: block;
  margin-top: 4px;
  color: #2563eb;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}
