/* cssbarberias/registro.css - premium dark style para formulario de registro */

/* 1) Importa tipografía moderna */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 2) Optimización global de texto */
html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 3) Reset y fondo */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #000;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  animation: fadeIn 1s ease-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 4) Contenedor principal */
main {
  background: radial-gradient(circle at top left, #111, #000);
  padding: 45px 35px;
  border-radius: 24px;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.2);
  width: 90%;
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: floatUp 0.8s ease;
}
@keyframes floatUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* 5) Título del registro */
main h2 {
  font-size: 2.3rem;
  margin-bottom: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* 6) Formulario interno */
main form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* 7) Inputs del formulario */
main form input {
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  background: #1d1d1d;
  color: white;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
main form input::placeholder {
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
}
main form input:focus {
  outline: none;
  background: #292929;
  box-shadow: 0 0 12px #ffffff55;
}

/* 8) Botón de registro */
main form button {
  padding: 14px;
  background: linear-gradient(90deg, #ffffff, #e0e0e0);
  color: #000;
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}
main form button:hover {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  transform: scale(1.03);
  box-shadow: 0 0 10px white;
}

/* 9) Mensaje de estado */
.mensaje {
  margin-top: 20px;
  padding: 14px;
  background: #1a1a1a;
  border-radius: 12px;
  font-weight: bold;
  color: #ff5e5e;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.2);
  animation: glowError 0.4s ease-in-out;
}
@keyframes glowError {
  0% { box-shadow: 0 0 0px rgba(255, 0, 0, 0.4); }
  50% { box-shadow: 0 0 12px rgba(255, 0, 0, 0.6); }
  100% { box-shadow: 0 0 0px rgba(255, 0, 0, 0.4); }
}

/* 10) Footer fijo */
footer.barra-footer {
  width: 100%;
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 18px 12px;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
}

/* 11) Responsive */
@media (max-width: 600px) {
  main {
    padding: 30px 20px;
    margin: 30px auto;
  }
  main h2 {
    font-size: 2rem;
  }
  main form input,
  main form button {
    font-size: 1rem;
    padding: 12px;
  }
  .mensaje {
    font-size: 0.95rem;
    padding: 12px;
  }
  footer.barra-footer {
    font-size: 0.9rem;
    padding: 14px 8px;
  }
}