/* King-Desk auth screens — same tokens as site.css, not olive/Laravel default */
body.page {
  background: var(--bg, #ececec);
  min-height: 100vh;
}
.auth-main {
  max-width: 1060px;
  margin: 48px auto 72px;
  padding: 0 24px;
}
.auth-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px 64px;
  align-items: start;
}
.auth-intro { padding-top: 20px; }
.auth-eyebrow {
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
}
.auth-intro h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 14px 0 12px;
  color: var(--ink);
}
.auth-intro p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.auth-steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 20px;
  counter-reset: step;
}
.auth-steps li {
  counter-increment: step;
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  color: var(--ink);
  font-weight: 500;
}
.auth-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--signal);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.55);
}
.auth-card {
  background: rgba(252, 250, 247, 0.72);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 12px 32px rgba(40, 30, 20, 0.08);
}
.auth-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.auth-muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.auth-muted a,
.auth-links a,
.auth-note a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--signal-soft);
}
.auth-muted a:hover,
.auth-links a:hover {
  color: var(--signal);
}
.auth-edo {
  margin: 22px 0 8px;
  padding: 0;
  border: 0;
}
.auth-edo legend {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.auth-edo > .auth-muted { margin: 8px 0 0; }
.auth-field { margin: 18px 0; }
.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.auth-field input,
.auth-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}
.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(240, 138, 60, 0.18);
}
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}
.auth-check input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--signal);
}
.auth-submit {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  cursor: pointer;
  border-radius: 14px;
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  font-size: 14px;
}
.auth-alert {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(240, 138, 60, 0.12);
  border: 1px solid var(--signal-soft);
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--ink);
}
.auth-alert.error {
  background: rgba(181, 74, 60, 0.1);
  border-color: rgba(181, 74, 60, 0.35);
  color: #843d32;
}
.auth-alert ul { margin: 0; padding-left: 18px; }
.auth-note {
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.auth-type-grid {
  border: 0;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.auth-type-grid legend {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}
.auth-type {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.55);
}
.auth-type:has(input:checked) {
  border-color: var(--signal);
  background: rgba(240, 138, 60, 0.12);
}
.auth-type input { accent-color: var(--signal); }
.auth-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.auth-profile dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.auth-profile dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; color: var(--ink); }
.auth-empty {
  text-align: center;
  padding: 32px 20px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.4);
}
.auth-empty .btn { margin-top: 12px; }
.auth-welcome {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(42, 42, 42, 0.42);
  backdrop-filter: blur(8px);
}
.auth-welcome[hidden] { display: none !important; }
.auth-welcome-card {
  width: min(440px, 100%);
  padding: 28px 28px 24px;
  border-radius: 20px;
  border: 1.5px solid var(--signal);
  background: rgba(252, 250, 247, 0.94);
  box-shadow: 0 18px 48px rgba(40, 30, 20, 0.18);
}
.auth-welcome-card h2 {
  margin: 8px 0 10px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.auth-welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.auth-welcome-actions .btn {
  width: 100%;
  text-align: center;
  border-radius: 14px;
}
.nav-links a.desk-icon {
  text-decoration: none;
  color: var(--ink);
}
.nav-links .desk-who {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
}
.auth-nav-form { display: inline; }
.auth-nav-form button { cursor: pointer; }
.auth-plans {
  display: grid;
  gap: 10px;
  margin: 16px 0 8px;
}
.auth-plan {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}
.auth-plan.is-on,
.auth-plan:has(input:checked) {
  border-color: var(--signal);
}
.auth-plan input { accent-color: var(--signal); }
.auth-plan strong { color: var(--ink); }
.auth-plan span { color: var(--muted); font-size: 14px; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .auth-main { margin-top: 24px; padding: 0 16px; }
  .auth-grid { grid-template-columns: 1fr; gap: 16px; }
  .auth-intro { padding: 0; }
  .auth-intro h1 { font-size: 28px; }
  .auth-steps { display: none; }
  .auth-card { padding: 22px 18px; }
}
@media (max-width: 380px) {
  .auth-type-grid { grid-template-columns: 1fr; }
}
