/* ======================= */
/* ESTILO LOGIN - NETFLIX STYLE */
/* ======================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}

/* ======================= */
/* CONTENEDOR PRINCIPAL */
/* ======================= */
.content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background: url('../img/fondologinback.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
}

/* Overlay oscuro sobre el fondo */
.content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* ======================= */
/* LOGO EN ESQUINA INFERIOR DERECHA */
/* ======================= */
.logo-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

.login-logo {
  max-width: 120px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.05);
}

/* ======================= */
/* CAJA DEL FORMULARIO */
/* ======================= */
.login-box {
  position: relative;
  z-index: 10;
  background: rgba(0, 0, 0, 0.75);
  padding: 60px 68px 40px;
  border-radius: 4px;
  width: 100%;
  max-width: 450px;
  min-height: 500px;
}

/* ======================= */
/* TÍTULO */
/* ======================= */
.login-title {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
}

/* ======================= */
/* INPUTS */
/* ======================= */
.container-input {
  margin-bottom: 16px;
  width: 100%;
}

.input-field {
  width: 100%;
  padding: 16px 20px;
  background: #333333;
  border: none;
  border-radius: 4px;
  color: #ffffff;
  font-size: 16px;
  outline: none;
  transition: all 0.2s ease;
}

.input-field::placeholder {
  color: #8c8c8c;
}

.input-field:focus {
  background: #454545;
  outline: 2px solid #ffffff;
}

/* ======================= */
/* CONTENEDOR DE CONTRASEÑA CON OJITO */
/* ======================= */
.password-container {
  position: relative;
}

.password-container .input-field {
  padding-right: 50px;
}

.toggle-password {
  position: absolute;
  top: 16px;
  right: 15px;
  background: none;
  border: none;
  color: #8c8c8c;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  transition: color 0.2s ease;
  z-index: 2;
}

.toggle-password:hover {
  color: #ffffff;
}

.password-container .message {
  position: relative;
}

/* ======================= */
/* BOTÓN INICIAR SESIÓN */
/* ======================= */
.btn-container {
  margin-top: 24px;
  margin-bottom: 12px;
}

.btn-ingresar {
  width: 100%;
  padding: 16px;
  background: #e50914;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  text-transform: none;
}

.btn-ingresar:hover {
  background: #f40612;
}

.btn-ingresar:active {
  background: #bf0811;
}

/* ======================= */
/* NOMBRE DE LA TIENDA */
/* ======================= */
.store-name {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ======================= */
/* FRASE MOTIVADORA */
/* ======================= */
.motivational-phrase {
  color: #b3b3b3;
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
  font-style: italic;
}

/* ======================= */
/* AVISO DE CREDENCIALES */
/* ======================= */
.credentials-notice {
  color: #737373;
  font-size: 13px;
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #333333;
}

.credentials-notice i {
  margin-right: 6px;
  color: #e50914;
}

/* ======================= */
/* MENSAJES DE ERROR */
/* ======================= */
.invalid-feedback {
  color: #e87c03;
  font-size: 13px;
  margin-top: 6px;
  display: block;
}

.message {
  min-height: 20px;
}

/* ======================= */
/* RESPONSIVE - TABLET */
/* ======================= */
@media (max-width: 768px) {
  .login-box {
    padding: 40px 30px 30px;
    margin: 20px;
    max-width: 400px;
    min-height: auto;
  }

  .login-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .logo-container {
    bottom: 15px;
    right: 15px;
  }

  .login-logo {
    max-width: 90px;
  }

  .store-name {
    font-size: 18px;
  }
}

/* ======================= */
/* RESPONSIVE - MÓVIL */
/* ======================= */
@media (max-width: 480px) {
  .login-box {
    padding: 30px 20px 25px;
    margin: 15px;
    border-radius: 4px;
  }

  .login-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .input-field {
    padding: 14px 16px;
    font-size: 15px;
  }

  .btn-ingresar {
    padding: 14px;
    font-size: 15px;
  }

  .logo-container {
    bottom: 10px;
    right: 10px;
  }

  .login-logo {
    max-width: 70px;
  }

  .store-name {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .motivational-phrase {
    font-size: 13px;
  }

  .credentials-notice {
    font-size: 11px;
  }
}

/* ======================= */
/* RESPONSIVE - PANTALLAS GRANDES */
/* ======================= */
@media (min-width: 1200px) {
  .login-logo {
    max-width: 150px;
  }

  .logo-container {
    bottom: 30px;
    right: 30px;
  }
}
