html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #181013 0%, #26070b 60%, #380916 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 1rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(5, 3, 4, 0.57); /* efecto glass rojo oscuro */
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(217, 4, 41, 0.33);
  animation: fadeIn 1s ease;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 4, 41, 0.18);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px);}
  to   { opacity: 1; transform: translateY(0);}
}

h3 {
  font-weight: 700;
  margin-bottom: 30px;
  color: #fff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 12px #d9042917;
}

.form-label {
  font-weight: 600;
  font-size: 15px;
  color: #ffb6b6; /* rosado claro */
}

.form-control {
  height: 50px;
  border-radius: 12px;
  font-size: 15px;
  padding-right: 40px;
  background-color: rgba(36, 9, 17, 0.87); /* glass rojizo */
  border: 1px solid #d90429; /* rojo intenso */
  color: #fff;
}

.form-control:focus {
  border-color: #ff4040;
  box-shadow: 0 0 0 3px rgba(255, 64, 64, 0.15);
}

.logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 25px;
  animation: bounce 1.5s infinite alternate;
  border: 2px solid #ff4040;
  background: #fff;
  box-shadow: 0 0 14px #d9042933;
}

@keyframes bounce {
  from { transform: translateY(0);}
  to   { transform: translateY(-15px);}
}

.btn-gradient {
  background: linear-gradient(135deg, #d90429 0%, #ff4040 100%);
  border: none;
  height: 50px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  color: white;
  transition: background 0.3s ease, transform 0.2s;
  box-shadow: 0 4px 14px #d9042922;
}

.btn-gradient:hover, .btn-gradient:focus {
  background: linear-gradient(135deg, #ff4040 0%, #9e0620 100%);
  transform: translateY(-2px) scale(1.03);
}

.password-wrapper {
  position: relative;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* 🌐 Solo en pantallas pequeñas */
@media (max-width: 576px) {
  .login-card {
    padding: 30px 20px;
    max-width: 100%;
  }

  .form-control {
    height: 45px;
    font-size: 14px;
  }

  .btn-gradient {
    height: 45px;
    font-size: 15px;
  }

  .logo {
    width: 90px;
    height: 90px;
  }

  h3 {
    font-size: 1.5rem;
  }
}


.btn-volver-inicio {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 99;
    background: rgba(36, 9, 17, 0.88); /* negro con tinte rojo, efecto glass */
    color: #fff;
    border-radius: 12px;
    border: 2px solid #d90429;
    font-weight: 600;
    padding: 8px 20px 8px 16px;
    box-shadow: 0 4px 16px #d9042918;
    transition: background 0.17s, color 0.17s, border 0.17s;
    font-size: 1rem;
    text-decoration: none;
}
.btn-volver-inicio:hover {
    background: #d90429;
    color: #fff;
    border-color: #fff;
    text-decoration: none;
}
.btn-volver-inicio i {
    margin-right: 7px;
}
@media (max-width: 600px) {
    .btn-volver-inicio { top: 12px; left: 8px; padding: 7px 13px 7px 10px; font-size: .97rem;}
}
