/* Login: Night Desk, nur Tokens, jede Regel eine Klasse (Zustaende ueber :where). */
.auth-root {
  min-height: 100%;
}

.auth-page {
  min-height: 100%;
  margin: 0;
  color: var(--os-text);
  background:
    radial-gradient(circle at 70% 15%, rgba(217, 164, 65, .08), transparent 30rem),
    linear-gradient(145deg, var(--os-bg) 0%, var(--os-surface-1) 100%);
  font-family: var(--os-font-ui);
  font-size: var(--os-text-base);
}

.auth-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(243, 240, 232, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 232, .022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.auth-shell {
  position: relative;
  z-index: 0;
  display: grid;
  min-height: 100vh;
  box-sizing: border-box;
  place-items: center;
  padding: var(--os-s7) var(--os-s5);
}

.auth-panel {
  position: relative;
  width: min(100%, 430px);
  box-sizing: border-box;
  padding: var(--os-s7);
  border-radius: var(--os-r-lg);
  background: var(--os-surface-2);
  box-shadow: var(--os-shadow-3);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: var(--os-s3);
  padding-bottom: var(--os-s6);
  border-bottom: 1px solid var(--os-line-soft);
}

.auth-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid var(--os-signal);
  border-radius: var(--os-r-md);
  color: var(--os-signal);
  background: var(--os-surface-3);
  font-family: var(--os-font-mono);
  font-size: var(--os-text-xs);
  font-weight: 700;
  place-items: center;
}

.auth-brand-copy {
  display: grid;
  gap: var(--os-s1);
}

.auth-brand-name {
  font-size: var(--os-text-lg);
  font-weight: 600;
  letter-spacing: .01em;
}

.auth-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--os-text-muted);
  font-family: var(--os-font-mono);
  font-size: var(--os-text-xs);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.auth-meta:where(.is-right) { text-align: right; }

.auth-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--os-r-full);
  background: var(--os-green);
  box-shadow: 0 0 10px rgba(50, 213, 131, .75);
}

.auth-heading {
  padding: var(--os-s7) 0 var(--os-s6);
}

.auth-eyebrow {
  margin: 0 0 var(--os-s2);
  color: var(--os-signal);
  font-family: var(--os-font-mono);
  font-size: var(--os-text-xs);
  font-weight: 600;
  letter-spacing: .13em;
}

.auth-title {
  margin: 0;
  color: var(--os-text);
  font-family: var(--os-font-display);
  font-size: var(--os-text-display);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.auth-lead {
  max-width: 34ch;
  margin: var(--os-s3) 0 0;
  color: var(--os-text-dim);
  font-size: var(--os-text-base);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: var(--os-s4);
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-label {
  color: var(--os-text-dim);
  font-size: var(--os-text-xs);
  font-weight: 600;
}

.auth-input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 0 var(--os-s3);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-md);
  outline: none;
  color: var(--os-text);
  background: var(--os-surface-1);
  font: inherit;
  font-size: var(--os-text-md);
  transition: border-color var(--os-t-fast) var(--os-ease), box-shadow var(--os-t-fast) var(--os-ease);
}

.auth-input:where(:focus) {
  border-color: var(--os-signal);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, .18);
}

.auth-submit {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--os-s1);
  padding: 0 var(--os-s4);
  border: 1px solid var(--os-text);
  border-radius: var(--os-r-md);
  color: var(--os-bg);
  background: var(--os-text);
  font: inherit;
  font-size: var(--os-text-base);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--os-t-fast) var(--os-ease), filter var(--os-t-fast) var(--os-ease);
}

.auth-submit:where(:hover) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.auth-submit:where(:focus-visible) {
  outline: 2px solid var(--os-blue);
  outline-offset: 3px;
}

.auth-submit-arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-error {
  margin: 0 0 var(--os-s4);
  padding: 11px var(--os-s3);
  border: 1px solid rgba(251, 113, 133, .45);
  border-radius: var(--os-r-md);
  color: var(--os-red);
  background: rgba(251, 113, 133, .08);
  font-size: var(--os-text-sm);
  line-height: 1.45;
}

.auth-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--os-s3);
  margin-top: var(--os-s6);
  padding-top: var(--os-s5);
  border-top: 1px solid var(--os-line-soft);
}

@media (max-width: 520px) {
  .auth-shell { padding: var(--os-s4); }
  .auth-panel { padding: var(--os-s6); }
  .auth-footer { align-items: flex-start; flex-direction: column; }
  .auth-meta:where(.is-right) { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit,
  .auth-input { transition: none; }
}
