/*  ***************************************************
    Login-Seiten (index.php, direct.php) - moderne Darstellung
    Ergänzt client_login.css, Aufbau und IDs bleiben unverändert.
    Größere Eingabefelder und Buttons für die Bedienung am Tablet.
    *************************************************** */

body {
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* Hintergrundbild etwas abdunkeln, damit die Anmeldekarte im Vordergrund steht */
#bgvid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(40, 43, 58, 0.55) 0%, rgba(40, 43, 58, 0.1) 60%);
}

.login-clean {
  padding: 8vh 0 100px;
  font-family: Roboto, system-ui, sans-serif !important;
}

.login-clean form {
  max-width: 400px;
  width: calc(100% - 32px);
  margin-left: max(16px, 6vw);
  padding: 34px 32px 30px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border-top: 5px solid #ffce3b;
}

.login-clean .illustration {
  padding-bottom: 12px;
}

.login-clean .illustration img {
  max-width: 230px;
}

.login-clean .illustration p:first-of-type {
  font-size: 1.6rem !important;
  font-weight: 600;
  margin: 8px 0 4px;
}

.login-clean form .form-control {
  height: 58px;
  border: 2px solid #d8dce4;
  border-radius: 12px !important;
  text-indent: 4px;
  font-size: 1.4rem !important;
  letter-spacing: 0.05em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-clean form .form-control:focus {
  border-color: #282b3a;
  box-shadow: 0 0 0 4px rgba(255, 206, 59, 0.45);
}

.login-clean form .btn-primary,
#btncheck {
  min-height: 58px;
  margin-top: 14px;
  border-radius: 12px !important;
  background: #282b3a !important;
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login-clean form .btn-primary:hover,
#btncheck:hover,
#btncheck:focus-visible {
  background: #ffce3b !important;
  color: #282b3a !important;
}

#errormsg {
  min-height: 1.4em;
  font-weight: 500;
}

#imgCaptcha {
  max-width: 100%;
  border-radius: 10px;
}

#btnResetCaptcha {
  width: 48px;
  height: 48px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Impressum / Datenschutz */
body > div[style*="position: fixed"][style*="bottom: 10px"] .btn {
  border-radius: 999px;
  padding: 8px 16px;
}

.modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.modal-header {
  border-bottom: 3px solid #ffce3b;
  background: #f5f6f8;
}

.modal-footer .btn {
  min-height: 46px;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .login-clean {
    padding-top: 4vh;
  }
  .login-clean form {
    margin: 0 auto;
    padding: 26px 20px;
  }
}

/* Kartenschutz: Hinweis nach Ablösung durch eine Anmeldung auf einem anderen Gerät */
.tn-login-hinweis {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7d6;
  border: 1px solid #f0d27a;
  color: #4a3b00;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}
