.inbox-auth-page {
  min-height: 100vh;
  padding: var(--wf-space-12) var(--wf-space-5);
  background: var(--wf-surface-muted);
  color: var(--wf-text);
}

.inbox-auth-shell {
  width: min(100%, 430px);
  margin: 0 auto;
}
.inbox-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--wf-space-2);
  margin-bottom: var(--wf-space-6);
  color: var(--wf-text);
  font-size: var(--wf-text-lg);
  text-decoration: none;
}
.inbox-auth-brand img {
  width: 30px;
  height: 30px;
  border-radius: var(--wf-radius-3);
}
.inbox-auth-card {
  overflow: hidden;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-4);
  background: var(--wf-surface);
  box-shadow: var(--wf-shadow-1);
}
.inbox-auth-header {
  padding: var(--wf-space-6) var(--wf-space-6) var(--wf-space-5);
  border-bottom: 1px solid var(--wf-border);
}
.inbox-auth-header h1 {
  margin: 0 0 var(--wf-space-2);
  font-size: var(--wf-text-2xl);
  line-height: var(--wf-line-tight);
}
.inbox-auth-header p,
.inbox-auth-message p {
  margin: 0;
  color: var(--wf-text-muted);
  font-size: var(--wf-text-sm);
}
.inbox-auth-options {
  display: grid;
  padding: var(--wf-space-2) 0;
}
.inbox-auth-option {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: var(--wf-space-4);
  padding: var(--wf-space-3) var(--wf-space-6);
  text-decoration: none;
  transition: background-color var(--wf-motion-fast) var(--wf-motion-ease);
}
.inbox-auth-option:hover {
  background: var(--wf-gray-100);
}
.inbox-auth-option + .inbox-auth-option {
  border-top: 1px solid var(--wf-border);
}
.inbox-auth-option > span:first-child {
  display: grid;
  gap: var(--wf-space-1);
}
.inbox-auth-option strong {
  font-size: var(--wf-text-sm);
}
.inbox-auth-option small {
  color: var(--wf-text-muted);
  font-size: var(--wf-text-xs);
}
.inbox-auth-arrow {
  width: 8px;
  height: 8px;
  flex: none;
  border-top: 1.5px solid currentcolor;
  border-right: 1.5px solid currentcolor;
  transform: rotate(45deg);
}
.inbox-auth-form {
  display: grid;
  gap: var(--wf-space-4);
  padding: var(--wf-space-5) var(--wf-space-6) var(--wf-space-6);
}
.inbox-auth-form label {
  display: grid;
  gap: 6px;
  font-size: var(--wf-text-xs);
  font-weight: 700;
}
.inbox-auth-form input {
  width: 100%;
  height: 42px;
  padding: 0 var(--wf-space-3);
  border: 1px solid var(--wf-border-strong);
  border-radius: var(--wf-radius-3);
  background: var(--wf-surface);
  color: var(--wf-text);
}
.inbox-auth-form input:hover {
  border-color: var(--wf-gray-400);
}
.inbox-auth-form input:focus-visible {
  border-color: var(--wf-focus);
}
.inbox-auth-password {
  position: relative;
  display: block;
}
.inbox-auth-password input {
  padding-right: 66px;
}
.inbox-auth-password button {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 58px;
  height: 40px;
  padding: 0 var(--wf-space-3);
  border: 0;
  border-left: 1px solid var(--wf-border);
  border-radius: 0 var(--wf-radius-3) var(--wf-radius-3) 0;
  background: var(--wf-surface-muted);
  color: var(--wf-text-muted);
  font-size: var(--wf-text-xs);
  font-weight: 700;
}
.inbox-auth-password button:hover {
  background: var(--wf-gray-100);
  color: var(--wf-text);
}
.inbox-auth-methods {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.inbox-auth-methods legend {
  margin-bottom: 6px;
  font-size: var(--wf-text-xs);
  font-weight: 700;
}
.inbox-auth-methods > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--wf-border-strong);
  border-radius: var(--wf-radius-3);
}
.inbox-auth-methods button {
  min-height: 38px;
  padding: var(--wf-space-2);
  border: 0;
  background: var(--wf-surface);
  color: var(--wf-text-muted);
  font-size: var(--wf-text-xs);
}
.inbox-auth-methods button + button {
  border-left: 1px solid var(--wf-border);
}
.inbox-auth-methods button:hover,
.inbox-auth-methods button[aria-pressed="true"] {
  background: var(--wf-gray-100);
  color: var(--wf-text);
}
.inbox-auth-methods button[aria-pressed="true"] {
  font-weight: 700;
}
.inbox-auth-submit {
  min-height: 40px;
  padding: 0 var(--wf-space-4);
  border: 1px solid var(--wf-emphasis);
  border-radius: var(--wf-radius-2);
  background: var(--wf-emphasis);
  color: var(--wf-on-emphasis);
  font-size: var(--wf-text-sm);
  font-weight: 700;
  transition:
    background-color var(--wf-motion-fast) var(--wf-motion-ease),
    border-color var(--wf-motion-fast) var(--wf-motion-ease);
}
.inbox-auth-submit:hover {
  border-color: var(--wf-emphasis-hover);
  background: var(--wf-emphasis-hover);
}
.inbox-auth-return {
  justify-self: center;
  color: var(--wf-text-muted);
  font-size: var(--wf-text-xs);
  text-underline-offset: 3px;
}
.inbox-auth-return:hover {
  color: var(--wf-text);
}
.inbox-auth-error {
  margin: 0;
  padding: var(--wf-space-3);
  border: 1px solid var(--wf-border-strong);
  border-radius: var(--wf-radius-2);
  background: var(--wf-surface-muted);
  color: var(--wf-text);
  font-size: var(--wf-text-xs);
}
.inbox-auth-message {
  display: grid;
  gap: var(--wf-space-3);
  padding: var(--wf-space-6);
}
.inbox-auth-footnote {
  margin: var(--wf-space-4) 0 0;
  color: var(--wf-text-subtle);
  font-size: var(--wf-text-2xs);
  text-align: center;
}
.inbox-auth-page ::selection {
  background: var(--wf-gray-300);
  color: var(--wf-gray-800);
}
@media (max-width: 520px) {
  .inbox-auth-page {
    padding: var(--wf-space-8) var(--wf-space-4);
  }
  .inbox-auth-header,
  .inbox-auth-form,
  .inbox-auth-message,
  .inbox-auth-option {
    padding-right: var(--wf-space-5);
    padding-left: var(--wf-space-5);
  }
  .inbox-auth-methods > div {
    grid-template-columns: 1fr;
  }
  .inbox-auth-methods button + button {
    border-top: 1px solid var(--wf-border);
    border-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .inbox-auth-option,
  .inbox-auth-submit {
    transition: none;
  }
}
