/* Login Page Styles */

/* Background immagine sinistra */
.bg-primary-light-5[style*="background-image"] {
  position: relative;
}

.bg-primary-light-5[style*="background-image"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
}

.bg-primary-light-5[style*="background-image"] .intro-excerpt {
  position: relative;
  z-index: 1;
  color: white;
}

.hero {
  /* background: linear-gradient(135deg, #000000 0%, #333333 50%, #666666 100%); */
  background: #fff;
  color: #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
}

.intro-excerpt h1 {
  font-family: var(--font-family-heading);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.intro-excerpt p {
  font-family: var(--font-family-body);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); */
  /* padding: 3rem; */
  max-width: 420px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-logo-img {
  height: 48px;
  width: auto;
}

.login-logo h1 {
  font-family: var(--font-family-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-logo h1 span {
  color: var(--dark-color);
}

.login-logo p {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text-color);
  font-size: 1.1rem;
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-control {
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(171, 232, 212, 0.15);
  background: white;
}

.btn-login {
  background: var(--primary-color);
  border: none;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light-color);
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}

.btn-login:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  color: var(--light-color);
  box-shadow: 0 5px 15px rgba(171, 232, 212, 0.15);
}

.forgot-password-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.forgot-password-link:hover {
  color: #3d9ca5;
  text-decoration: underline;
}

.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
  border-radius: 15px 15px 0 0;
}

.modal-title {
  color: var(--dark-color);
  font-weight: 600;
}

.modal-body .form-control {
  border-radius: 10px;
}

.modal-body .btn {
  border-radius: 10px;
  font-weight: 600;
}

@media (max-width: 991px) {
  .hero {
    padding: 50px 0;
  }

  .intro-excerpt h1 {
    font-size: 2.2rem;
  }

  .login-card {
    margin-top: 2rem;
    padding: 2rem;
  }
}

@media (max-width: 767px) {
  body.mobile-login-bg {
    min-height: 100vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
  }
  body.mobile-login-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
  }
  .container-fluid {
    position: relative;
    z-index: 1;
  }
  .bg-white {
    background: transparent !important;
  }
  .col-md-5 {
    display: none !important;
  }
  .login-card {
    background: white !important;
    border-radius: 15px !important;
    padding: 2.5rem 2rem !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    margin: 1rem !important;
  }
  .row.min-vh-100 {
    justify-content: center !important;
  }
}
