/* Access and recovery share the same tokens and controls as the workspace. */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100dvh;
  background: var(--canvas);
}
.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(590px, 100%);
  margin: auto;
  padding: 100px clamp(28px, 5vw, 76px) 60px;
  min-height: 100dvh;
}
.auth-back {
  position: absolute;
  top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 13px;
  text-decoration: none;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 46px;
}
.auth-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.brand-wordmark {
  font: 600 30px/1 var(--font-display);
  letter-spacing: -0.055em;
  text-transform: lowercase;
}
.auth-copy h1 {
  max-width: 440px;
  font-size: clamp(34px, 3.7vw, 48px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.1;
  margin: 12px 0 16px;
}
.auth-copy p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.auth-form {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}
.auth-form label {
  color: var(--ink);
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
}
.auth-form input {
  width: 100%;
  min-height: 50px;
}
.auth-form small {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.auth-submit {
  justify-content: space-between;
  margin-top: 20px;
  width: 100%;
  min-height: 50px;
}
.auth-submit[disabled] {
  cursor: wait;
}
.auth-help {
  color: var(--ink-soft);
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.6;
}
.auth-help button {
  display: inline;
  padding: 4px 0;
  color: var(--ink);
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-error,
.auth-message {
  margin-top: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 6px;
  border-left: 3px solid var(--cn-focus);
  background: var(--cn-bg-subtle);
  color: var(--cn-success);
}
.auth-error,
.auth-message[data-state="error"] {
  border-left-color: var(--danger);
  background: var(--danger-soft);
  color: var(--cn-danger);
}
.auth-context {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  margin: 18px 18px 18px 0;
  padding: 48px;
  min-height: 600px;
  color: var(--cn-text-inverse);
  background: var(--brand-teal);
  border-radius: 16px;
}
.auth-context::before,
.auth-context::after {
  content: "";
  position: absolute;
  width: min(28vw, 370px);
  height: min(28vw, 370px);
  border: clamp(28px, 4.2vw, 58px) solid var(--cn-highlight-border);
  border-right-color: transparent;
  border-radius: 50%;
  top: 21%;
  left: 13%;
  transform: rotate(-35deg);
  opacity: 0.92;
}
.auth-context::after {
  top: 26%;
  left: 37%;
  transform: rotate(140deg);
  border-color: var(--cn-border-strong);
  border-right-color: transparent;
  opacity: 0.45;
}
.auth-context-index {
  position: absolute;
  top: 42px;
  left: 48px;
  color: var(--cn-text-inverse);
  font: 11px var(--font-utility);
  letter-spacing: 0.08em;
}
.auth-context blockquote {
  position: relative;
  max-width: 520px;
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.auth-context-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cn-sage-200);
  font-size: 12px;
}
.auth-context-flow i {
  flex: 1;
  max-width: 26px;
  height: 1px;
  background: var(--cn-sage-500);
}
.forbidden-shell {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
}
.forbidden-shell section {
  width: min(600px, 100%);
  padding: clamp(28px, 5vw, 52px);
  background: var(--cn-surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.forbidden-code {
  font: 12px var(--font-utility);
  color: var(--ink-soft);
}
.forbidden-shell h1 {
  margin: 18px 0;
  font-size: 36px;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.forbidden-shell p {
  color: var(--ink-soft);
}
.forbidden-shell section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-context {
    display: none;
  }
  .auth-panel {
    padding: 90px 28px 48px;
  }
}
@media (max-width: 420px) {
  .auth-panel {
    padding-inline: 24px;
  }
  .auth-brand {
    margin-bottom: 32px;
  }
  .auth-copy h1 {
    font-size: 36px;
  }
  .auth-form {
    margin-top: 22px;
  }
}
