body {
    background-color: #e9ecef;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    background-color: #ffffff;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    max-width: 200px;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.btn-primary {
    background-color: #003366;
    border-color: #003366;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-primary:hover {
    background-color: #002244;
    border-color: #002244;
}

.form-control {
    border-radius: 5px;
    box-shadow: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
} 

/* mobile adjustments */
@media (max-width: 768px) {
  html {
    height: auto;
  }
  body {
    height: auto;
    padding-top: 60px; /* if mobile header covers top */
  }
  .login-container {
    width: 100%;
    /* padding: 1rem; */
    height: auto;
    min-height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .login-box {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-shadow: none;
    border-radius: 0;
  }
  .logo {
    max-width: 120px;
    margin-bottom: 1rem;
  }
  /* Remove safe-area padding on login page */
  body.login-page {
    padding-top: 0 !important;
  }
  /* Ensure login container fills full viewport height */
  body.login-page .login-container {
    height: 100vh !important;
    min-height: 100vh !important;
  }
}

/* Login page full-screen and clear background */
body.login-page {
  background-color: #fff !important;
}
@media (max-width: 768px) {
  .login-container {
    background-color: #fff;
    height: 100vh !important;
    min-height: 100vh !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .login-box {
    width: 100%;
    max-width: none;
    height: 100vh !important;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .logo {
    max-width: 180px;
    margin: 0 auto 1.5rem;
  }
}

/* Fullscreen lock and no scroll on mobile login */
body.login-page {
  height: 100vh !important;
  overflow: hidden !important;
}
html, body.login-page {
  margin: 0;
  padding: 0;
}
@media (max-width: 768px) {
  html, body.login-page, .login-container {
    height: 100vh !important;
  }
  body.login-page {
    padding-top: 0 !important;
  }
  .login-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }
} 