/* =========================================================
   login.css
   Nur Login-/Registrierungsseite. Gemeinsame Modals und
   UI-Basis liegen in common.css.
   ========================================================= */

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/loginhintergrund.png') no-repeat center center fixed;
  background-size: cover;
}

.container {
  position: relative;
  z-index: 2;
  width: 350px;
  max-width: 96vw;
  padding: 2.2em 2em 2em;
  color: #fff;
  text-align: center;
  background: rgba(20, 25, 48, 0.87);
  border: 2px solid #28e0ff66;
  border-radius: 16px;
  box-shadow: 0 0 44px 8px #20f6ff70, 0 0 120px 10px #cc8fff36;
}

h1 {
  margin: 0 0 1.3em;
  font-weight: 800;
  color: #44d9ff;
  text-shadow: 0 0 12px #2adfff77, 0 0 22px #fff2;
  letter-spacing: 0.03em;
  font-size: 1.7em;
}

label {
  display: block;
  font-size: 1em;
  text-align: left;
  margin: 0.7em 0 0.15em;
  color: #e5eaff;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.55em 0.5em;
  margin-bottom: 0.7em;
  border-radius: 6px;
  border: none;
  font-size: 1em;
  background: #181d2e;
  color: #fff;
  box-shadow: 0 0 10px #00fff826;
  transition: box-shadow 0.16s;
}

input:focus {
  outline: none;
  box-shadow: 0 0 16px #00fff8bb;
  background: #20263e;
}

input[type="checkbox"] {
  accent-color: #00ffd0;
  width: 1em;
  height: 1em;
}

button {
  width: 100%;
  padding: 0.64em 0;
  margin: 0.2em 0 0.4em;
  background: linear-gradient(90deg, #00ffc3 0%, #47a8ff 100%);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 1.08em;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 0 12px 1px #00ffe0a2;
  transition: background 0.22s, box-shadow 0.17s, color 0.14s;
}

button:hover {
  background: linear-gradient(90deg, #47a8ff 0%, #00ffc3 100%);
  color: #222;
  box-shadow: 0 0 24px 5px #60ff97aa;
}

.error-message,
.success-message {
  font-size: 0.99em;
  margin: 0.4em 0 0.2em;
  border-radius: 7px;
  padding: 2.5px 0;
}

.error-message {
  color: #f44336;
  background: rgba(58,12,16,0.11);
  border: 1px solid #ff436652;
  box-shadow: 0 0 10px 2px #ff436652;
}

.success-message {
  color: #4caf50;
  background: rgba(24,48,18,0.08);
  border: 1px solid #50ff8e52;
  box-shadow: 0 0 14px 1px #50ff8e52;
}

.switch-form {
  text-align: center;
  margin-top: 1em;
  font-size: 1em;
}

.switch-form a {
  color: #37e9ff;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.16s;
}

.switch-form a:hover {
  color: #ffaaee;
}

.h-captcha {
  margin-top: 1em;
  display: flex;
  justify-content: center;
}

@media (max-width: 520px) {
  .container {
    width: 99vw;
    min-width: 0;
    padding: 1em 0.7em 1.2em;
    box-shadow: 0 0 10px 2px #11fff3c1;
  }

  h1 {
    font-size: 1.2em;
    margin-bottom: 1em;
  }
}

body {
  min-height: var(--app-height, 100vh);
  padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@supports (min-height: 100dvh) {
  body {
    min-height: var(--app-height, 100dvh);
  }
}

.container {
  width: min(350px, 100%);
  max-width: calc(100vw - 24px);
  margin: auto;
}

#registerForm,
#loginForm {
  min-width: 0;
}

.h-captcha {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

@media (max-height: 700px) {
  body {
    align-items: flex-start;
  }

  .container {
    padding-top: clamp(1em, 3vh, 1.5em);
    padding-bottom: clamp(1em, 3vh, 1.5em);
  }

  h1 {
    margin-bottom: 0.8em;
  }

  label {
    margin-top: 0.45em;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"] {
    margin-bottom: 0.48em;
  }
}

@media (max-width: 380px) {
  .container {
    padding-left: 0.85em;
    padding-right: 0.85em;
  }

  .switch-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 7px;
  }
}

.login-support-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 8, 15, .82);
  backdrop-filter: blur(5px);
}
.login-support-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(55, 233, 255, .35);
  border-radius: 16px;
  background: rgba(7, 21, 34, .98);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .55);
  color: #eefaff;
}
.login-support-modal h2 { margin: 0 36px 8px 0; color: #ffd866; }
.login-support-modal p { color: #b9d4df; line-height: 1.45; }
.login-support-modal form { display: grid; gap: 12px; }
.login-support-modal label { display: grid; gap: 5px; font-size: 14px; }
.login-support-modal input,
.login-support-modal select,
.login-support-modal textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #fff;
}
.login-support-modal textarea { min-height: 110px; resize: vertical; }
.login-support-modal button[type="submit"] { margin-top: 4px; }
.login-support-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.login-support-feedback { min-height: 22px; margin-top: 10px; color: #b9d4df; }
.login-support-feedback.is-success { color: #6dffb0; }
.login-support-feedback.is-error { color: #ff8da4; }
.login-support-honeypot { position: absolute !important; left: -10000px !important; opacity: 0 !important; }
