/* ==== FORMULARIOS LOGIN/REGISTRO CON ESTILO INDEX ==== */

.form-container {
  max-width: 420px;
  margin: 80px auto;
  background: radial-gradient(circle at top left, #0f172a 0, #020617 60%, #020617 100%);
  padding: 32px 26px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

.form-container h2 {
  margin-bottom: 18px;
  color: #f9fafb;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.form-container p {
  margin-bottom: 5px;
}

/* Inputs */
.form-container input {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.95em;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-container input::placeholder {
  color: #9ca3af;
}

.form-container input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.5);
}

/* Botón */
.form-container button {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: none;
  color: #111827;
  padding: 11px 0;
  border-radius: 999px;
  font-size: 1em;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.6);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-container button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.85);
}

.form-container button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.9);
}

/* Texto cambio de formulario */
.switch-form {
  margin-top: 16px;
  font-size: 0.9em;
  color: #9ca3af;
}

.switch-form a {
  color: #f97316;
  text-decoration: none;
  font-weight: 600;
}

.switch-form a:hover {
  text-decoration: underline;
}

/* Mensajes de error */
.form-container .mensaje-error {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(248, 113, 113, 0.7);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.85em;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 600px) {
  .form-container {
    margin: 60px 14px;
    padding: 26px 20px;
  }
}