/* Auth + onboarding layout */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  padding: 1.5rem 1.35rem 1.25rem;
}

.auth-brand h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.auth-tagline {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.auth-form .field-grow {
  flex: 1 1 auto;
  min-width: 0;
}

.auth-submit {
  margin-top: 0.35rem;
}

.auth-footer {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.auth-footer a {
  color: var(--accent);
}

.auth-hint {
  font-size: 0.82rem;
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  font-size: 0.88rem;
}

.nav-user {
  color: var(--muted);
}

.nav-link {
  color: var(--accent);
  text-decoration: none;
}

.nav-btn {
  width: auto;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

.shell-wide {
  max-width: 820px;
}

.wizard-steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.wizard-steps li {
  font-size: 0.68rem;
  text-align: center;
  padding: 0.4rem 0.2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: #0d1424;
}

.wizard-steps li.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.wizard-steps li.done {
  border-color: rgba(126, 231, 135, 0.45);
  color: var(--ok);
}

.wizard-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.mode-grid {
  display: grid;
  gap: 0.65rem;
}

.mode-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  background: #0d1424;
}

.mode-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(121, 184, 255, 0.25);
}

.mode-card input {
  width: auto;
  margin-right: 0.45rem;
}

.mode-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.mode-card span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.mode-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wizard-actions {
  margin-top: 1rem;
}

textarea {
  width: 100%;
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0d1424;
  color: var(--text);
  padding: 0.6rem 0.7rem;
  resize: vertical;
  min-height: 4rem;
}

.tenant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tenant-pick {
  width: 100%;
  text-align: left;
  background: #0d1424;
  border-color: var(--border);
  font-weight: 500;
  padding: 0.55rem 0.75rem;
}

.button-link {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  color: var(--text);
  background: var(--btn);
  border: 1px solid var(--btn);
}

.button-link.primary:hover {
  filter: brightness(1.08);
}

.advanced-block {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  background: #0d1424;
}

.advanced-block summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.88rem;
}

.advanced-block[open] summary {
  margin-bottom: 0.65rem;
}

.mode-card.compact {
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.45rem;
}

.byok-fields {
  margin-top: 0.5rem;
}

.checklist {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.checklist li.done {
  color: var(--ok);
}

.check-icon {
  width: 1.25rem;
  text-align: center;
  font-weight: 700;
}

.wizard-actions {
  margin-top: 1.25rem;
}

.wizard-actions .primary {
  min-width: 12rem;
}

@media (max-width: 640px) {
  .wizard-steps {
    grid-template-columns: 1fr 1fr;
  }
}
