/* Login-Seite (Design "Horizonte"). Bewusst eigenstaendig und immer dunkel,
   unabhaengig vom Hell/Dunkel-Modus des Portals. Bilder: static/brand/. */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.lg {
  background: #021a36; color: #fff;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
.lg-hero {
  /* Schiff: hoechstens 760px, hoehen- und breitenabhaengig, endet immer links neben der Login-Karte */
  --ship-w: min(760px, 90vh, calc(91vw - 472px));
  --ship-bottom: 17vh;
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column;
  background:
    radial-gradient(900px 520px at 22% 30%, rgba(245,133,9,.10), transparent 60%),
    linear-gradient(180deg, #001730 0%, #021f3f 55%, #011328 100%);
}
.lg-wave {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46vh;
  background: url("brand/login-wave.jpg") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 38%);
          mask-image: linear-gradient(180deg, transparent 0, #000 38%);
}
.lg-horizon {
  position: absolute; left: 0; right: 0; bottom: calc(var(--ship-bottom) - 6px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,133,9,.55), rgba(255,200,120,.25), transparent);
}
.lg-ship, .lg-reflect { left: 56px; width: var(--ship-w); height: auto; }
/* Schiff steht im normalen Fluss UNTER dem Text (margin-top:auto = ganz unten) -> kann nie mit ihm kollidieren;
   ist das Fenster zu niedrig, waechst die Seite und scrollt statt zu ueberlappen. */
.lg-ship {
  order: 2; position: relative; left: 0; margin: auto 0 var(--ship-bottom) 56px; flex: none;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.45));
}
.lg-reflect {
  position: absolute;
  bottom: calc(var(--ship-bottom) - 0.158 * var(--ship-w) - 6px);
  transform: scaleY(-1); opacity: .14; filter: blur(1.5px);
  -webkit-mask-image: linear-gradient(0deg, #000, transparent 70%);
          mask-image: linear-gradient(0deg, #000, transparent 70%);
}
.lg-logo { position: absolute; left: 56px; top: 44px; height: 44px; width: auto; }
.lg-copy { order: 1; position: relative; flex: none; padding: 150px 0 28px 56px; max-width: 700px; }
.lg-copy h1 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.lg-copy h1 em { font-style: normal; color: #f58509; }
.lg-feats { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 13px; max-width: 440px; }
.lg-feats li { display: grid; grid-template-columns: 3px 1fr; gap: 0 14px; align-items: start; }
.lg-feats li::before { content: ""; grid-row: span 2; background: #f58509; border-radius: 2px; height: 100%; }
.lg-feats b { font-size: 14.5px; }
.lg-feats span { font-size: 13px; color: #8fa3c0; }

.lg-card {
  position: absolute; right: 9vw; top: 50%; transform: translateY(-54%);
  width: 400px; padding: 38px 36px 34px; border-radius: 20px;
  background: #0b2748; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.10);
}
.lg-card h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.lg-sub { color: #aebdd3; font-size: 13.5px; margin-top: 4px; }
.lg-card label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: #c6d3e6; margin: 16px 0 6px; }
.lg-card input {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; font-family: inherit; outline: none;
  background: #061a33; border: 1px solid rgba(255,255,255,.18); color: #fff;
}
.lg-card input::placeholder { color: #6f84a3; }
.lg-card input:focus { border-color: #f58509; box-shadow: 0 0 0 3px rgba(245,133,9,.22); }
.lg-card input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #061a33 inset; -webkit-text-fill-color: #fff; caret-color: #fff;
}
.lg-pw { position: relative; }
.lg-pw input { padding-right: 44px; }
.lg-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; padding: 0; margin: 0; border: 0; border-radius: 8px;
  background: transparent; color: #8fa3c0; cursor: pointer; display: grid; place-items: center;
}
.lg-eye:hover, .lg-eye[aria-pressed="true"] { color: #fff; }
.lg-eye svg { width: 18px; height: 18px; }
.lg-card button[type="submit"] {
  width: 100%; margin-top: 24px; padding: 13px; border: 0; border-radius: 10px;
  font-family: inherit; font-weight: 700; font-size: 14.5px; letter-spacing: .01em; cursor: pointer;
  background: linear-gradient(180deg, #ff9a22, #f58509); color: #1a0e00;
  box-shadow: 0 8px 22px rgba(245,133,9,.35);
}
.lg-card button[type="submit"]:hover { filter: brightness(1.06); }
.lg-error {
  margin-top: 16px; padding: 10px 12px; border-radius: 8px; font-size: 13px;
  background: rgba(208,59,59,.20); color: #ff9c9c; border: 1px solid rgba(208,59,59,.35);
}
.lg-foot { position: absolute; right: 28px; bottom: 22px; color: #c6d3e6; font-size: 12px; text-shadow: 0 1px 6px rgba(0,0,0,.85); }

/* Niedrige Fenster (z. B. Laptop mit 125-150 % Skalierung): kompakter */
@media (max-height: 760px) {
  .lg-hero { --ship-w: min(600px, 80vh, calc(91vw - 472px)); --ship-bottom: 10vh; }
  .lg-copy { padding-top: 120px; padding-bottom: 20px; }
  .lg-copy h1 { font-size: 34px; }
  .lg-feats { margin-top: 20px; gap: 9px; }
}
@media (max-height: 600px) {
  .lg-copy { padding-top: 116px; }
  .lg-copy h1 { font-size: 30px; }
}

/* Schmale Fenster / Smartphone: Karte mittig, Text ausblenden */
@media (max-width: 960px) {
  .lg-hero { display: flex; flex-direction: column; align-items: center; padding: 28px 16px 140px; }
  .lg-logo { position: static; height: 36px; margin-bottom: 28px; }
  .lg-copy { display: none; }
  .lg-card { position: relative; right: auto; top: auto; transform: none; width: 100%; max-width: 400px; padding: 30px 24px 26px; z-index: 1; }
  .lg-hero { --ship-w: 92vw; --ship-bottom: 17vh; }
  .lg-ship { position: absolute; margin: 0; left: 4vw; bottom: var(--ship-bottom); opacity: .55; }
  .lg-reflect { left: 4vw; opacity: .08; }
  .lg-foot { left: 0; right: 0; bottom: 18px; text-align: center; }
}
