/* Login / Register — readable type, clear hierarchy, toast-friendly alerts */

.auth-shell.theme-root {
  --auth-ink: #17171c;
  --auth-muted: #5c5c68;
  --auth-border: #e4e4e7;
}

.auth-shell[data-theme="dark"] {
  --auth-ink: #f3f3f7;
  --auth-muted: #a8a8b4;
  --auth-border: #303036;
}

.auth-shell .aside-copy .eyebrow,
.auth-shell .form-label {
  font-size: 12px !important;
  letter-spacing: 0.08em !important;
  font-weight: 750 !important;
}

.auth-shell .aside-copy h1 {
  font-size: clamp(34px, 4.2vw, 48px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
}

.auth-shell .aside-copy > p:not(.eyebrow) {
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  max-width: 34ch;
}

.auth-shell .auth-proof article strong {
  font-size: 15px !important;
}

.auth-shell .auth-proof article span {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.auth-shell .form-heading h2 {
  font-size: clamp(28px, 3.4vw, 36px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.028em !important;
  color: var(--auth-ink) !important;
}

.auth-shell .form-heading > div > p:last-child {
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: var(--auth-muted) !important;
  max-width: 36ch;
}

.auth-shell .auth-form label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--auth-ink) !important;
  gap: 8px !important;
}

.auth-shell .auth-form label small {
  display: block;
  margin-top: 6px;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: var(--auth-muted) !important;
}

.auth-shell .auth-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  font-size: 15px !important;
  height: 52px !important;
}

.auth-shell .auth-form input:not([type="checkbox"]):not([type="hidden"]),
.auth-shell .auth-password-field input {
  color: var(--auth-ink) !important;
  -webkit-text-fill-color: var(--auth-ink) !important;
  caret-color: var(--auth-ink) !important;
  background-color: var(--auth-panel) !important;
  opacity: 1 !important;
}

.auth-shell .auth-form input::placeholder,
.auth-shell .auth-password-field input::placeholder {
  color: #8a8a96 !important;
  -webkit-text-fill-color: #8a8a96 !important;
  opacity: 1 !important;
  font-size: 14px !important;
}

.auth-shell[data-theme="dark"] .auth-form input::placeholder,
.auth-shell[data-theme="dark"] .auth-password-field input::placeholder {
  color: #9a9aa8 !important;
  -webkit-text-fill-color: #9a9aa8 !important;
}

/* Chrome/Safari autofill paints ghost text — force readable ink on panel bg */
.auth-shell .auth-form input:-webkit-autofill,
.auth-shell .auth-form input:-webkit-autofill:hover,
.auth-shell .auth-form input:-webkit-autofill:focus,
.auth-shell .auth-form input:-webkit-autofill:active,
.auth-shell .auth-password-field input:-webkit-autofill,
.auth-shell .auth-password-field input:-webkit-autofill:hover,
.auth-shell .auth-password-field input:-webkit-autofill:focus {
  color: var(--auth-ink) !important;
  -webkit-text-fill-color: var(--auth-ink) !important;
  caret-color: var(--auth-ink) !important;
  border-color: var(--auth-border) !important;
  box-shadow: 0 0 0 1000px var(--auth-panel) inset !important;
  transition: background-color 99999s ease-out 0s;
}

.auth-shell .auth-password-toggle {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--auth-muted) !important;
}

.auth-shell .auth-remember {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 4px 0 2px !important;
  font-size: 14px !important;
  font-weight: 560 !important;
  color: var(--auth-muted) !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
}

.auth-shell .auth-remember input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  flex: 0 0 18px !important;
  border: 1.5px solid var(--auth-border) !important;
  border-radius: 5px !important;
  background: var(--auth-panel) !important;
  box-shadow: none !important;
  accent-color: #704af5;
  cursor: pointer;
  position: relative;
}

.auth-shell .auth-remember input[type="checkbox"]:checked {
  border-color: #704af5 !important;
  background: #704af5 !important;
}

.auth-shell .auth-remember input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-shell .auth-remember input[type="checkbox"]:focus {
  border-color: #7654ef !important;
  box-shadow: 0 0 0 3px rgba(108, 72, 245, 0.16) !important;
  outline: none !important;
}

.auth-shell .auth-remember input[type="checkbox"]:focus:not(:focus-visible) {
  box-shadow: none !important;
}

.auth-shell .auth-remember span {
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: var(--auth-ink) !important;
  font-weight: 560 !important;
}

.auth-shell .auth-form .primary {
  font-size: 14px !important;
  font-weight: 750 !important;
}

.auth-shell .switch {
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: var(--auth-muted) !important;
}

.auth-shell .switch a {
  font-weight: 700 !important;
}

.auth-shell .auth-back {
  font-size: 12px !important;
}

/* Auth toasts: keep readable even if older auth-modern rules fight */
.auth-shell .alert {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.auth-shell .alert .toast-content strong {
  font-size: 14px !important;
  font-weight: 800 !important;
}

.auth-shell .alert .toast-message {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  color: var(--toast-muted, #4d5563) !important;
}

@media (max-width: 900px) {
  .auth-shell .form-heading h2 {
    font-size: 30px !important;
  }

  .auth-shell .form-heading > div > p:last-child,
  .auth-shell .auth-form label small,
  .auth-shell .switch {
    font-size: 14px !important;
  }
}
