.auth-page {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
}

.auth-back {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-back:hover {
  color: var(--accent);
}

.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(0, 230, 118, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0, 245, 255, 0.06) 0%, transparent 50%),
    linear-gradient(165deg, #060a12 0%, #0a1019 45%, #0d1520 100%);
  border-right: 1px solid var(--border);
}

.auth-panel-inner {
  width: 100%;
  max-width: 26rem;
}

.auth-panel-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.auth-panel-mark {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.auth-panel-name {
  font-family: var(--mono);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}

.auth-panel-tagline {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
}

.auth-panel-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-panel-features li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.auth-panel-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--bg);
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 2rem 1.75rem 1.75rem;
}

.auth-form-header {
  margin-bottom: 1.5rem;
}

.auth-form-header h1 {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.auth-form-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.auth-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-form input,
.auth-form select {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.auth-org-panel {
  display: none;
  margin-bottom: 0.5rem;
}

.auth-org-panel.visible {
  display: block;
}

.auth-org-hint {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.auth-inline-link {
  margin: -0.35rem 0 0.85rem;
  text-align: right;
  font-size: 0.82rem;
}

.auth-inline-link a {
  color: var(--accent);
  text-decoration: none;
}

.auth-inline-link a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.auth-actions {
  margin-top: 0.5rem;
}

.auth-consent {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.auth-consent a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-consent a:hover {
  color: var(--text);
}

.auth-actions button {
  width: 100%;
}

.auth-error {
  background: rgba(255, 82, 82, 0.12);
  border: 1px solid rgba(255, 82, 82, 0.35);
  color: #ff8a80;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.auth-success {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: var(--accent-hover);
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.auth-notice {
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.auth-notice code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
}

.auth-dev-code {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.auth-dev-code-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.auth-dev-code-value {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin: 0.25rem 0;
}

.auth-dev-code-hint {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 0.5rem;
}

.auth-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

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

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

.auth-radio-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.auth-radio-row label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  font-size: 0.9rem;
  margin: 0;
  cursor: pointer;
}

.auth-radio-row input {
  width: auto;
  margin: 0;
}

@media (min-width: 901px) {
  .auth-back {
    left: calc(50% + 1.25rem);
    color: var(--muted);
  }
}

@media (max-width: 900px) {
  .auth-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .auth-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 1.5rem 2rem;
    align-items: flex-start;
  }

  .auth-panel-inner {
    max-width: none;
  }

  .auth-panel-tagline {
    margin-bottom: 1.25rem;
  }

  .auth-panel-features {
    gap: 0.75rem;
  }

  .auth-form-panel {
    padding: 2rem 1.25rem 2.5rem;
    align-items: flex-start;
  }

}
