/* ---- ESTILO GENERAL ---- */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #e0f7fa, #fce4ec);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---- CONTENEDOR PRINCIPAL ---- */
.auth-box {
  background: rgba(255, 255, 255, 0.99);
  backdrop-filter: blur(12px);
  width: 400px;
  padding: 45px 35px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.auth-box:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* ---- LOGO ---- */
.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  animation: fadeIn 1.2s ease;
}

.logo {
  width: 110px;
  height: auto;
  border-radius: 10px;
}

/* ---- TÍTULO ---- */
.auth-box h1 {
  font-family: 'Arsenica', serif;
  font-size: 24px;
  color: #222;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

/* ---- BOTONES DE PESTAÑA ---- */
.tab-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  gap: 10px;
}

.tab-buttons button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #f3f3f3;
  font-weight: 600;
  color: #444;
  transition: all 0.3s ease;
}

.tab-buttons button:hover {
  background: #e2e2e2;
}

.tab-buttons button.active {
  background: #00b491;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 180, 145, 0.3);
}

/* ---- FORMULARIO ---- */
.form-section {
  display: none;
}

.form-section.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ---- INPUTS ---- */
input {
  display: block;
  width: calc(100% - 6px); /* ✅ Evita que se pegue al borde */
  padding: 12px 15px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #d0d0d0;
  font-size: 14px;
  background-color: #fafafa;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

input:focus {
  outline: none;
  border-color: #00b491;
  box-shadow: 0 0 6px rgba(0, 180, 145, 0.3);
  background-color: #fff;
}

/* ---- BOTÓN PRINCIPAL ---- */
button[type="submit"] {
  width: calc(100% - 6px); /* ✅ Igual ancho que los inputs */
  background: #00b491;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-sizing: border-box;
}

button[type="submit"]:hover {
  background: #009b7c;
  box-shadow: 0 6px 18px rgba(0, 180, 145, 0.25);
}

/* ---- MENSAJES ---- */
.error-message {
  color: #d3052d;
  font-size: 13px;
  margin-bottom: 10px;
}

#register-msg {
  color: #00b491;
  font-size: 13px;
  margin-bottom: 10px;
}

/* ---- ANIMACIONES ---- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mensajes de validación elegantes */
.message {
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  display: none;
}

/* Usuario no registrado */
.message.error {
  display: block;
  background-color: rgba(255, 0, 0, 0.08);
  color: #d62828;
  border: 1px solid #d62828;
}

/* Credenciales incorrectas */
.message.warning {
  display: block;
  background-color: rgba(255, 193, 7, 0.15);
  color: #b08900;
  border: 1px solid #b08900;
}

/* Registro exitoso */
.message.success {
  display: block;
  background-color: rgba(0, 200, 83, 0.12);
  color: #006d32;
  border: 1px solid #00a152;
}
