/*
 * Project: nixdorf.cloud / Stellwerk
 * Owner: Torsten Nixdorf
 * Coding Brand: Nixdorf Media
 * Purpose: Minimal public styling for the server-protected login entry point.
 * Visibility: Public login resource; no application data is rendered here.
 * Rules: Keep the public surface small and avoid third-party assets.
 */
:root {
  color-scheme: light;
  --login-navy: #081f2c;
  --login-accent: #0093DE;
  --login-ink: #17252b;
  --login-muted: #68777e;
  --login-line: #d4dde1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--login-navy);
  color: var(--login-ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 18%, rgb(0 147 222 / 22%), transparent 34%),
    linear-gradient(135deg, #081f2c 0%, #0e3342 100%);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 420px);
  padding: 36px;
  border: 1px solid var(--login-line);
  border-left: 4px solid var(--login-accent);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgb(30 46 72 / 12%);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--login-accent);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.login-brand img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  object-position: center 20%;
  flex: 0 0 auto;
}

h1 {
  margin: 28px 0 8px;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.1;
}

.login-intro {
  margin: 0 0 28px;
  color: var(--login-muted);
}

form {
  display: grid;
  gap: 10px;
}

label {
  margin-top: 8px;
  color: #344154;
  font-size: .9rem;
  font-weight: 700;
}

input,
button {
  min-height: 46px;
  border-radius: 10px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--login-line);
  padding: 0 14px;
  color: inherit;
  background: #fbfcfe;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid rgb(0 147 222 / 30%);
  outline-offset: 2px;
}

button {
  margin-top: 16px;
  border: 0;
  padding: 0 18px;
  color: #fff;
  background: var(--login-accent);
  cursor: pointer;
  font-weight: 700;
}

button:disabled {
  cursor: wait;
  opacity: .7;
}

.login-message {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: #a12b2b;
  font-size: .92rem;
}

@media (max-width: 480px) {
  .login-card {
    padding: 28px 22px;
  }
}

/* STW-UI-AUTH-001: login shell follows the approved dark/Navy surface language. */
:root {
  color-scheme: dark;
  --login-navy: #071923;
  --login-surface: #0d2533;
  --login-surface-soft: #123344;
  --login-ink: #edf8fb;
  --login-muted: #a4c1cc;
  --login-line: #316476;
}

body {
  background:
    radial-gradient(circle at 50% 18%, rgb(0 147 222 / 20%), transparent 34rem),
    linear-gradient(135deg, #04121a 0%, #0b2b3b 100%);
}

.login-card {
  border-color: rgb(49 100 118 / 86%);
  border-left-color: #0093DE;
  border-radius: 14px;
  background: linear-gradient(145deg, #102e40 0%, #0d2533 100%);
  box-shadow: 0 24px 60px rgb(0 0 0 / 28%);
  color: var(--login-ink);
}

.login-brand {
  color: #7ed7f4;
}

.login-brand img {
  border: 1px solid rgb(0 147 222 / 45%);
  border-radius: 8px;
  background: #f4f8fa;
  padding: 4px;
  box-shadow: 0 4px 14px rgb(0 0 0 / 22%);
}

h1 {
  color: #f3fbff;
}

.login-intro,
label {
  color: var(--login-muted);
}

input {
  border-color: rgb(49 100 118 / 90%);
  background: #081b27;
  color: #edf8fb;
}

input::placeholder {
  color: #7897a5;
}

button {
  background: #0093DE;
  color: #03111c;
}

button:hover {
  background: #24a9e8;
}
