.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 36px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: normal;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.auth-logo__mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.auth-logo__text {
  line-height: 1;
}

.auth-header-link {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
}

.auth-header-link:hover {
  color: var(--ink);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 80px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: none;
}

.auth-title {
  font-family: var(--font-display);
  font-weight: var(--type-display-weight);
  font-size: var(--type-title-size);
  line-height: 1.05;
  letter-spacing: var(--type-tight-tracking);
  margin-bottom: 8px;
}

.auth-title em {
  font-weight: inherit;
}

.auth-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.auth-field label {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}

.auth-input {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.auth-input::placeholder {
  color: var(--muted);
}

.auth-input:focus {
  border-color: var(--ink);
  box-shadow: var(--focus-ring-tight);
}

.auth-input.invalid {
  border-color: var(--error);
}

.auth-field-msg {
  font-size: 12px;
  color: var(--error);
  min-height: 14px;
}

.auth-link {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-link a {
  color: var(--ink-2);
  font-weight: 500;
}

.auth-link a:hover {
  color: var(--ink);
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  font-weight: 500;
}

.auth-dev-hint {
  font-size: 12px;
  background: var(--tint);
  padding: 10px 12px;
  border-radius: 10px;
}

.auth-success {
  display: none;
  text-align: center;
  padding: 8px 0;
}

.auth-success.show {
  display: block;
}

.auth-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.auth-sent-to {
  background: var(--tint);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 18px 0 22px;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-mail-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.auth-sent-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.auth-sent-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.auth-sent-email {
  font-weight: 500;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-resend {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.auth-resend button {
  background: none;
  border: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
  text-decoration: underline;
}

.auth-resend button:disabled {
  color: var(--muted);
  text-decoration: none;
  cursor: not-allowed;
}

.auth-error-card {
  text-align: center;
}

@media (max-width: 540px) {
  .auth-header {
    padding: 18px 20px;
  }

  .auth-card {
    padding: 36px 26px 28px;
    border-radius: 16px;
  }

  .auth-title {
    font-size: 28px;
  }
}
