/* === ESTILO BASE === */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #111;
  background-image: url('../img/registro_body.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === CONTENEDOR PRINCIPAL === */
.login-container {
  flex: 1;
  width: 100%;
  max-width: 460px;
  margin: 60px auto 30px;
  padding: 40px 30px;
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  text-align: center;
}

/* === LOGO === */
.logo-login {
  width: 100px;
  margin-bottom: 25px;
  filter: drop-shadow(0 0 5px #d47c2c);
}

/* === TÍTULO === */
h1 {
  font-size: 2rem;
  color: #d47c2c;
  margin-bottom: 30px;
}

/* === MENSAJES === */
.mensaje {
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.mensaje.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.mensaje.exito {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* === FORMULARIO === */
form {
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #d47c2c;
  font-size: 0.95rem;
}

input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #222;
  color: #fff;
  font-size: 1rem;
}

input:focus {
  border-color: #d47c2c;
  outline: none;
}

/* === BOTÓN ACCEDER === */
.btn-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 30px;
  background-color: #d47c2c;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit:hover,
.btn-submit:focus {
  background-color: #e88c40;
  box-shadow: 0 4px 10px rgba(232, 140, 64, 0.6);
  outline: none;
}

/* === BOTÓN CANCELAR === */
.btn-cancelar {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  border: 2px solid #d47c2c;
  border-radius: 30px;
  background-color: transparent;
  color: #d47c2c;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
  text-align: center;
}

.btn-cancelar:hover,
.btn-cancelar:focus {
  background-color: #d47c2c;
  color: #fff;
  outline: none;
}

/* === ENLACE REGISTRO === */
.registro-link {
  margin-top: 20px;
  font-size: 0.95rem;
  text-align: center;
}

.registro-link a {
  color: #d47c2c;
  text-decoration: underline;
}

.registro-link a:hover {
  color: #fff;
}

/* === FOOTER === */
.footer {
  background-color: #0b0b0b;
  color: #aaa;
  padding: 20px;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 40px;
}

.footer a {
  color: #d47c2c;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s;
}

.footer a:hover {
  color: #fff;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
    margin: 40px auto 20px;
  }

  .logo-login {
    width: 80px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .btn-submit,
  .btn-cancelar {
    font-size: 0.95rem;
  }
}

.enlace-recuperar {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #ffffffb3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.enlace-recuperar:hover {
  color: #d47c2c;
}