/* Login — minimalistisch Schwarz / Weiß / Grau */

@font-face {
  font-family: "DeathMohawk";
  src: url("../fonts/DeathMohawk_PERSONAL_USE_ONLY.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: #111;
  background: #e8e8e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-wrap {
  width: 100%;
  max-width: 22rem;
}

.login-card {
  container-type: inline-size;
  container-name: login-card;
  background: #fff;
  border: 1px solid #c8c8c8;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 2.25rem 1.75rem 2rem;
}

.login-brand {
  margin: 0 0 1.75rem;
  text-align: center;
  line-height: 1;
}

.login-brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-brand-name {
  display: block;
  width: 100%;
  font-family: "DeathMohawk", Impact, "Arial Black", sans-serif;
  /* Fallback: begrenzter vw-Anteil; mit Container-Query an Kartenbreite wie die Felder */
  font-size: clamp(3.05rem, 2.6rem + min(11vw, 2.35rem), 5.9rem);
  font-weight: normal;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #0a0a0a;
  text-align: center;
}

@supports (font-size: 1cqi) {
  .login-brand-name {
    font-size: clamp(3rem, 1.05rem + 17cqi, 5.95rem);
  }
}

.login-brand-version {
  display: block;
  margin-top: 0.45rem;
  margin-left: 0.35rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.08em;
  line-height: 1;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-field {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: #111;
  background: #d9d9d9;
  border: 1px solid #b8b8b8;
  border-radius: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.login-field::placeholder {
  color: #5a5a5a;
  opacity: 1;
}

.login-field:hover {
  background: #d0d0d0;
  border-color: #999;
}

.login-field:focus {
  outline: none;
  border-color: #111;
  background: #e0e0e0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
}

.login-btn {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid #111;
  border-radius: 2px;
  color: #111;
  background: #f0f0f0;
  transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.login-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.login-btn:active {
  background: #fff;
  color: #111;
  border-color: #111;
}

.login-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #111;
}

.login-err {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
  color: #111;
  background: #f5f5f5;
  border: 1px solid #bbb;
  border-left: 4px solid #111;
}
