/* 认证页细节：与 base.css 共用令牌，深浅色均由语义变量接管。 */
.auth-wrap .card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--border-soft) 82%, var(--primary));
  box-shadow: var(--shadow-float);
}
.auth-wrap .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
  pointer-events: none;
}
:root[data-theme="dark"] .auth-wrap .card::after { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.auth-wrap .auth-icon .icon,
.auth-wrap .auth-icon svg { width: 22px; height: 22px; }
.auth-wrap .btn-block { min-height: 46px; margin-top: 4px; }
.auth-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: -4px 0 14px;
  font-size: 13px;
}
.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--text-sub);
  cursor: pointer;
  user-select: none;
}
.remember-label input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.remember-label:hover { color: var(--text-main); }
.remember-label input:focus-visible { outline-offset: 3px; }
.pwd-strength {
  height: 4px;
  margin: 10px 2px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-soft);
}
.pwd-strength i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--danger);
  transition: width .2s ease, background-color .2s ease;
}
.auth-hint {
  display: block;
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.7;
}
.auth-extra-row .auth-hint { display: inline-block; margin: 0; }
a.auth-hint:hover { color: var(--primary); }
.auth-footer a { font-weight: 560; }
.auth-wrap .form-msg { overflow-wrap: anywhere; }
.auth-wrap .done-icon { margin: 0 0 14px; color: var(--primary); }

@media (max-width: 420px) {
  .auth-extra-row { align-items: flex-start; gap: 4px 12px; }
  .auth-wrap .card::before { height: 2px; }
}
