.auth-signup-page {
  max-width: 28rem;
  margin: 2rem auto;
}

.auth-signup-form .field {
  margin-bottom: 1rem;
}

.auth-signup-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.auth-signup-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface, #f5f5f7);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  flex-shrink: 0;
}

.auth-signup-tip:hover,
.auth-signup-tip:focus-visible {
  border-color: var(--color-accent, #007aff);
  color: var(--color-accent, #007aff);
  outline: none;
}

.auth-signup-form .input.is-valid {
  border-color: #16a34a;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.15);
}

.auth-signup-form .input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12);
}

.auth-field-error {
  margin: 0.35rem 0 0;
  color: #b91c1c;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.auth-field-error[hidden] {
  display: none !important;
}

.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.auth-password-wrap .input {
  padding-right: 3rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm, 6px);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: var(--color-accent, #007aff);
  background: rgba(0, 122, 255, 0.08);
  outline: 2px solid var(--color-accent, #007aff);
  outline-offset: 1px;
}

.auth-password-strength {
  margin-top: 0.5rem;
}

.auth-password-strength__track {
  height: 0.35rem;
  border-radius: 999px;
  background: var(--color-surface, #e5e7eb);
  overflow: hidden;
}

.auth-password-strength__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #dc2626;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.auth-password-strength__bar[data-level="1"] {
  width: 33%;
  background: #dc2626;
}

.auth-password-strength__bar[data-level="2"] {
  width: 66%;
  background: #ca8a04;
}

.auth-password-strength__bar[data-level="3"] {
  width: 100%;
  background: #16a34a;
}

.auth-password-strength__label {
  min-height: 1.25rem;
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.auth-signup-form [data-signup-submit]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-role-options {
  display: grid;
  gap: 0.5rem;
}

.auth-role-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}

.auth-role-option:has(input:checked) {
  border-color: var(--color-accent, #007aff);
  background: rgba(0, 122, 255, 0.05);
}

.auth-signup-footer {
  font-size: var(--text-sm, 0.875rem);
}

@media (max-width: 47.99rem) {
  .auth-signup-page {
    margin: 1rem auto 1.5rem;
  }

  .auth-password-toggle {
    width: 2.875rem;
    height: 2.875rem;
  }
}
