/* Use the same hero background as register.php */
.hero-landing {
  margin-top: 0 !important;
  min-height: 100vh !important;
  background: url('img/about-2.png') center center/cover no-repeat !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  background-blend-mode: overlay !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Add an overlay similar to register.php */
.hero-landing:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero-landing > * {
  position: relative;
  z-index: 2;
}

/* Fix for login card vertical alignment */
.container-fluid.hero-landing .container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Fix for row alignment */
.container-fluid.hero-landing .row {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Fix for navbar overlap */
html, body {
  height: 100%;
  padding: 0 !important;
  margin: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh; /* Ensure body covers full viewport */
}

/* Add navbar spacer */
.navbar-fix {
  display: block;
  content: "";
  height: 70px; /* Same as navbar height */
}

/* Handle the navbar */
.modern-navbar.transparent-navbar {
  background-color: #1f458b !important;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 70px;
}

/* Make navbar text/links more visible on the dark background */
.modern-navbar.transparent-navbar .navbar-brand,
.modern-navbar.transparent-navbar .nav-link {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Adjust brand logo for better visibility */
.modern-navbar.transparent-navbar .navbar-logo {
  filter: brightness(1.2);
}

/* Form Controls */
.form-control.input-dark {
  background: #fafafa;
  border: 1px solid #dee2e6;
  color: #212529;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control.input-dark:focus {
  border-color: #1e3efd;
  box-shadow: 0 0 0 0.2rem rgba(30, 62, 253, 0.25);
}

/* Button Styling */
.btn-primary {
  background-color: #1f458b !important;
  border-color: #1f458b !important;
  color: white !important;
  border-radius: 8px !important;
  height: 45px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #15316c !important;
  border-color: #15316c !important;
  color: white !important;
}

/* Links */
.login-card a {
  color: #1e3efd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-card a:hover {
  color: #0d2ccc;
  text-decoration: underline;
}

/* Error Message */
#errorMsg {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  text-align: center;
}

/* Modal Styling */
.modal-content {
  border-radius: 1rem;
  border: none;
  overflow: hidden;
}

.modal-header {
  border-bottom: none;
  padding: 1.5rem 1.5rem 0.5rem;
}

.modal-header.bg-warning {
  background-color: #ffc107 !important;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: none;
  padding: 0.5rem 1.5rem 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-card {
    padding: 1.75rem;
    margin: 0.75rem;
  }
  
  .hero-landing {
    padding-top: 0;
    height: 100vh; /* Keep full viewport height */
  }
}

@media (max-width: 576px) {
  .login-card {
    padding: 1.25rem;
    margin: 0.5rem;
  }
  
  .login-card h2 {
    font-size: 1.5rem;
  }
}
.modern-navbar.transparent-navbar .navbar-logo {
  filter: brightness(1.2);
}

/* Login Card Styling */
.login-card {
  background: #fff;
  max-width: 400px;
  width: 100%;
  padding: 25px !important;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  max-height: 550px;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
  background-color: white !important;
}

.login-card h2 {
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

/* Login card animations */
.login-card {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-dark {
    background-color: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    height: 45px !important;
    padding: 10px 15px !important;
    color: #222 !important;
}
.input-dark:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    outline: none !important;
}
.input-dark::placeholder {
    color: #666 !important;
    opacity: 1;
}