/* Technical UI only. The approved brand panel and shared brand tokens stay intact. */
.pane {
  --auth-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --auth-link: var(--se-teal-600);
  font-family: var(--auth-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--se-fg);
}

.pane .box :is(h2, p, a, button, input, label, span, strong, em) {
  font-family: var(--auth-font);
}

.pane .box h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.pane .box :is(.sub, .keep, .alt, .confirmation p) {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--se-fg-muted);
}

.pane .box .sub {
  margin: 12px 0 28px;
}
.pane .box .mono {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--se-fg-muted);
}
.pane .box .form {
  gap: 20px;
}
.pane .fld {
  gap: 8px;
  color: var(--se-fg-muted);
}
.pane .fld,
.pane .fld > span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.pane .fld input {
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.pane .fld input::placeholder {
  color: var(--se-fg-muted);
}
.pane .pwwrap input {
  padding-right: 88px;
}

.pane .box a,
.pane .confirmation button {
  color: var(--auth-link);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 3px;
}
.pane .box a:hover,
.pane .confirmation button:hover {
  color: var(--se-teal-700);
  text-decoration: underline;
}
.pane .back {
  margin-bottom: 20px;
}
.pane .box:has(.confirmation.on) > .back {
  display: none;
}
.pane .box > a:not(.back) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
}
.pane .pwwrap button {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--auth-link);
}
.pane .box .btn--primary {
  min-height: 48px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--se-teal-600);
  color: var(--se-white);
}
.pane .box .btn--primary:hover {
  background: var(--se-teal-700);
}
.pane .box .btn--primary:active {
  background: var(--se-teal-800);
}
.pane .alt {
  margin-top: 28px;
  padding-top: 24px;
  gap: 16px;
}

.pane .err,
.pane .confirmation {
  padding: 16px;
  border-radius: var(--se-radius-md);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.pane .err {
  margin: 0 0 24px;
}
.pane .err.success {
  background: #eef5f2;
  border-color: #bad4c7;
  color: #216343;
}
.pane .confirmation strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.pane .confirmation .actions {
  align-items: center;
  gap: 12px 16px;
  margin-top: 16px;
}
.pane .confirmation .actions :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
/* These non-interactive live regions receive programmatic focus, not a control ring. */
.pane :is(.err, .confirmation):focus {
  outline: none;
}
.pane :is(a, button, input):focus-visible {
  outline: 2px solid var(--se-teal-600);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .pane .box {
    margin-top: 32px;
  }
}
