* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== FONDO CON IMAGEN BORROSA ===== */
body {
  height: 100vh;
  font-family: 'Georgia', serif;
  display: flex;
  justify-content: flex-end; /* Cambiado de center a flex-end */
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image: url('/img/imgFond.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ===== CONTENEDOR ===== */
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 20px;
  margin-right: 80px; /* Añadido margen derecho */
}

/* ===== TARJETA LOGIN ===== */
.login-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 45px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* ===== TITULOS ===== */
.login-card h1 {
  color: #c9a24d;
  font-size: 30px;
  margin-bottom: 8px;
}

.login-card p {
  color: #555;
  margin-bottom: 35px;
  font-size: 15px;
}

/* ===== CAMPOS ===== */
.input-group {
  text-align: left;
  margin-bottom: 22px;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #333;
}

.input-group input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
  border-color: #c9a24d;
  box-shadow: 0 0 0 2px rgba(201, 162, 77, 0.25);
}

/* ===== BOTÓN ===== */
button {
  width: 100%;
  margin-top: 10px;
  padding: 15px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(135deg, #c9a24d, #a88734);
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 162, 77, 0.6);
  opacity: 0.95;
}

/* ===== MENSAJE ERROR ===== */
.error {
  margin-top: 16px;
  color: #c0392b;
  font-size: 14px;
}

/* ===== ENLACE REGRESAR ===== */
.back-link {
  position: absolute;
  top: 25px;
  left: 30px;
  z-index: 2;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s;
}

.back-link:hover {
  background: rgba(201, 162, 77, 0.9);
  color: #000;
  transform: translateX(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .login-container {
    margin-right: 0; /* Centrado en móviles */
    justify-content: center;
  }
  
  body {
    justify-content: center; /* Centrado en móviles */
  }
  
  .login-card {
    padding: 35px 25px;
  }

  .login-card h1 {
    font-size: 26px;
  }
}