body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-image: url('../img/background.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 30px;
  color: white;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 10px;
  box-shadow:
    0 0.4px 0.4px rgba(128, 128, 128, 0.109),
    0 1px 1px rgba(128, 128, 128, 0.155),
    0 2.1px 2.1px rgba(128, 128, 128, 0.195),
    0 4.4px 4.4px rgba(128, 128, 128, 0.241),
    0 12px 12px rgba(128, 128, 128, 0.35);
  width: 400px;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-box {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  font-weight: 500;
  background: transparent;
  color: white;
  border: 1px solid white;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 30px;
  padding-right: 40px; /* make space for arrow */
}

.select-box option {
  font-family: 'Inter', sans-serif;
  font-size: 1em;
  font-weight: 500;
  color: black;
}

.login-form h1 {
  margin-bottom: 24px;
  font-size: 2em;
  font-weight: 600;
}

.form-input-material {
  width: 100%;
  margin: 12px 0;
}

.form-input-material label {
  display: block;
  font-size: 1em;
  font-weight: 500;
  margin-bottom: 6px;
  text-align: left;
}

.form-input-material input[type="text"],
.form-input-material input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1em;
  background: transparent;
  border: 1px solid white;
  color: white;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
}

.checkbox-group {
  width: 100%;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.checkbox-group label {
  font-size: 1em;
  font-weight: 500;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  transform: scale(1.4); /* Bigger checkboxes */
  accent-color: white; /* Optional: set checkbox color */
}

.btn {
  width: 100%;
  margin-top: 22px;
  padding: 12px;
  font-size: 1em;
  font-weight: 500;
  background: #f2f2f2;
  color: black;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
  box-sizing: border-box;
}

.btn:hover {
  background: #d0d0d0;
}

.form-input-material input[type="date"],
.form-input-material input[type="time"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1em;
  background: transparent;
  border: 1px solid white;
  color: white;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-input-material input[type="date"]::placeholder,
.form-input-material input[type="time"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px transparent inset !important;
  -webkit-text-fill-color: white !important;
}

/* Red header alert */
.form-header-alert {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 16px 0;
  padding: 12px 14px;
  border: 3px solid #c62828;     /* strong red border */
  background: rgba(198, 40, 40, 0.1); /* subtle red tint */
  color: #c62828;                /* red text */
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 768px) {
  html, body {
    height: 100%;
  }

  body {
    background-image: url('../img/background.jpg') !important;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: block !important;   /* disable desktop flex centering */
    margin: 0;
    padding: 0;
  }

  .login-form {
    width: 100vw;
    min-height: 100dvh;          /* fill dynamic viewport height on mobile */
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  
    align-items: stretch;
    background: rgba(0, 0, 0, 0.7); /* more transparent on mobile */
    backdrop-filter: blur(3px);     /* optional, smooth out background */
    color: #fff;
  }

  /* Ensure alerts stay readable */
  .form-header-alert {
    background: rgba(198, 40, 40, 0.2);
    border-color: #ff5252;
    color: #ff5252;
  }
}

/* Slightly tighter on very small screens */
@media (max-width: 480px) {
  .form-header-alert {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-width: 2px;
    font-size: 0.95rem;
    border-radius: 6px;
  }
}
