:root {
  --paper: #0B1220;
  --snow: #141B28;
  --mist: #2A3344;
  --ink: #E6E9ED;
  --ink-muted: rgba(230, 233, 237, 0.65);
  --signal: #2DD4BF;
  --signal-hover: #5EEAD4;
  --stamp: #0F766E;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.card {
  position: relative;
  width: min(480px, 92vw);
  padding: 2.5rem 2rem 2rem;
  border-radius: 12px;
  background: var(--snow);
  border: 1px solid var(--mist);
  text-align: center;
}
.km0-lang-switch {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--mist);
  background: rgba(11, 18, 32, 0.45);
  font-size: 0.75rem;
  font-weight: 500;
}
.km0-lang-switch__btn {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font: inherit;
  padding: 6px 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
.km0-lang-switch__btn:hover { color: var(--ink); }
.km0-lang-switch__btn--active {
  background: var(--mist);
  color: var(--ink);
}
.logo {
  width: min(72px, 22vw);
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.75rem;
}
h1 {
  margin: 0 0 0.5rem;
  font-family: 'Bricolage Grotesque', 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.tagline {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.intro {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.km0-otherways {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mist);
}
.km0-otherways__label {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.btn-primary {
  width: 100%;
  max-width: 320px;
  margin: 0.5rem auto;
  padding: 0.85rem 2rem;
  border: 0;
  border-radius: 8px;
  background: var(--signal);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-primary:hover {
  background: var(--signal-hover);
  color: var(--paper);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
.btn-secondary {
  width: 100%;
  max-width: 320px;
  margin: 0.5rem auto;
  padding: 0.85rem 2rem;
  border: 1px solid var(--mist);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-secondary:hover {
  background: rgba(45, 212, 191, 0.08);
  border-color: var(--signal);
}
.btn-secondary--muted {
  max-width: 280px;
  padding: 0.6rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
  border-color: var(--mist);
}
.btn-secondary--muted:hover {
  color: var(--ink);
}
.text-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--signal);
  text-decoration: none;
}
.text-link:hover { color: var(--signal-hover); }
footer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
footer a { color: var(--ink-muted); text-decoration: none; }
footer a:hover { color: var(--signal); }
.banner {
  display: none;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}
.banner--visible { display: block; }
.banner--success {
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--signal-hover);
}
.banner--error {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ffb4b4;
}
.register-form { text-align: left; max-width: 360px; margin: 0 auto; }
.register-form .btn-primary {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0.75rem 0 0;
}
.ldap-hint {
  margin: 0.5rem auto 0;
  max-width: 320px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-muted);
}
.field { margin-bottom: 0.85rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}
.field small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.field input, .field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--mist);
  background: rgba(11, 18, 32, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
}
.mode-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.mode-toggle button {
  flex: 1;
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--mist);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}
.mode-toggle button.active {
  border-color: var(--signal);
  background: rgba(45, 212, 191, 0.12);
  color: var(--ink);
}
.pricing-notice {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.22);
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: left;
}
.dns-record {
  margin-bottom: 1rem;
  padding: 0.85rem;
  border-radius: 8px;
  background: rgba(11, 18, 32, 0.45);
  border: 1px solid var(--mist);
  text-align: left;
  font-size: 0.82rem;
}
.dns-record code {
  display: block;
  margin-top: 0.35rem;
  word-break: break-all;
  color: var(--signal);
}
.dns-status { font-weight: 600; }
.dns-status--ok { color: var(--signal-hover); }
.dns-status--pending { color: #fbd38d; }
