/* Schlanke Anmeldung – gleicher Aufbau wie LEK (nexusinfra-12.css «nx-schlank»), Akzent Bauprogramm. */
:root {
  --nx-app: #b45309;
  --nx-app-hell: #fdf1e3;
  --nx-app-hover: #92400e;
  --nx-brand: #0e5570;
  --nx-target: 32px;
  --text: #173042;
  --text-2: #4b5d6b;
  --rand: #e3e9ef;
  --rand-feld: #b8c4cf;
  --fehler: #b42318;
  --fehler-bg: #fef3f2;
  --ok: #067647;
  --ok-bg: #ecfdf3;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #f5f8fa 0%, #e9eef4 100%);
}
.nx-schlank {
  --nx-schlank-feld: 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 24px 12px;
}
@media (pointer: coarse) { .nx-schlank { --nx-schlank-feld: 44px; } }
.nx-schlank-karte {
  width: min(360px, 100%);
  padding: 24px 28px 20px;
  border: 1px solid var(--rand);
  border-top: 3px solid var(--nx-app);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 48, 66, 0.05), 0 8px 24px rgba(23, 48, 66, 0.07);
}
.login-form-header { margin-bottom: 16px; text-align: center; }
.login-form-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 10px;
  color: var(--nx-app);
  background: var(--nx-app-hell);
}
.login-form-icon svg { width: 18px; height: 18px; }
.nx-schlank-app { margin: 0 0 2px; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--nx-app); }
.login-form-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.login-form-desc { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
form { display: grid; gap: 12px; margin: 0; }
.tb-field { display: grid; gap: 4px; }
.tb-field__label { font-size: 13px; font-weight: 500; }
input[type="text"], input[type="password"] {
  width: 100%;
  min-height: var(--nx-schlank-feld);
  padding: 7px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  border: 1px solid var(--rand-feld);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 48, 66, 0.04);
}
input:focus-visible { outline: none; border-color: var(--nx-app); box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.2); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--nx-schlank-feld);
  padding: 7px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  background: var(--nx-app);
  cursor: pointer;
}
.btn-primary:hover { background: var(--nx-app-hover); }
.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.3); }
.text-center { margin: -2px 0 0; text-align: center; }
.login-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--nx-target);
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--nx-brand);
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}
.login-error, .login-success { padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.login-error p, .login-success p { margin: 0; }
.login-error { color: var(--fehler); background: var(--fehler-bg); border: 1px solid #fecdca; }
.login-success { color: var(--ok); background: var(--ok-bg); border: 1px solid #abefc6; }
.nx-text p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.nx-abmelden { margin-top: 4px; justify-items: center; }
.nx-schlank-unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 16px;
  font-size: 12px;
  color: var(--text-2);
}
.nx-schlank-unten a { display: inline-flex; align-items: center; min-height: var(--nx-target); color: var(--nx-brand); }
.nx-schlank-unten .nx-schlank-zurueck { font-weight: 600; text-decoration: none; }
.nx-schlank-unten .nx-schlank-zurueck:hover { text-decoration: underline; }
@media (min-width: 760px) {
  .nx-schlank-karte { width: min(680px, 100%); padding: 28px 32px; }
  .login-form-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 32px;
    align-items: center;
  }
  .login-form-header { margin: 0; text-align: left; }
  .login-form-icon { margin: 0 0 12px; }
}
