/* ========================================
   Auth Modals — 登录/注册、编辑资料弹窗（全屏分屏）
   修改点: 弹窗样式、表单布局
   ======================================== */

/* Modal overlay — fullscreen auth */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 500; display: none; }
.modal-overlay.show { display: block; animation: fadeIn 0.3s ease-out; }
#editProfileModal.show { display: flex; align-items: center; justify-content: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Edit profile modal — compact box (defined FIRST so auth-split overrides win) */
#editProfileModal .modal-box { background: rgba(20, 20, 25, 0.98); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 32px; min-width: 300px; max-width: 420px; width: fit-content; box-shadow: 0 24px 80px rgba(0,0,0,0.6); animation: modalSlideIn 0.3s ease-out; }
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(-16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ============================================ */
/* Fullscreen auth modal — LEFT video / RIGHT form */
/* ============================================ */
#loginModal .modal-box.auth-split { background: #0a0a0f !important; border: none !important; box-shadow: none !important; padding: 0 !important; min-width: unset !important; max-width: unset !important; width: 100vw !important; height: 100vh !important; display: flex !important; flex-direction: row !important; overflow: hidden; animation: authSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); border-radius: 0 !important; }
@keyframes authSlideIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

/* Left panel — video / visual */
.auth-visual { flex: 1; min-width: 0; position: relative; overflow: hidden; background: linear-gradient(160deg, #1a0533 0%, #0f0520 40%, #0a0a1a 100%); display: flex; align-items: center; justify-content: center; }
.auth-visual video { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.auth-visual-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(120, 40, 200, 0.25) 0%, rgba(10, 10, 30, 0.9) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; z-index: 1; }
.auth-visual-title { font-size: 28px; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 12px; text-shadow: 0 2px 20px rgba(120, 40, 200, 0.5); }
.auth-visual-subtitle { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.6; max-width: 360px; }

/* Animated floating orbs for visual panel fallback */
.auth-orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.5; animation: orbFloat 6s ease-in-out infinite alternate; }
.auth-orb-1 { width: 200px; height: 200px; background: rgba(168, 85, 247, 0.3); top: 20%; left: 15%; animation-delay: 0s; }
.auth-orb-2 { width: 150px; height: 150px; background: rgba(59, 130, 246, 0.25); bottom: 25%; right: 20%; animation-delay: -2s; }
.auth-orb-3 { width: 100px; height: 100px; background: rgba(236, 72, 153, 0.2); top: 50%; left: 50%; animation-delay: -4s; }
@keyframes orbFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, -30px) scale(1.2); } }

/* Right panel — form */
.auth-form-panel { flex: 1; min-width: 420px; max-width: 520px; background: rgba(15, 15, 22, 0.97); backdrop-filter: blur(20px); display: flex !important; flex-direction: column; justify-content: center; align-items: center; padding: 48px 40px; position: relative; overflow-y: auto; }
.auth-form-inner { width: 100%; max-width: 360px; margin: 0 auto; }

/* Close button for fullscreen modal */
.modal-close { position: absolute; top: 20px; right: 20px; z-index: 10; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 22px; transition: all 0.2s; border: none; }
.modal-close:hover { background: rgba(239, 68, 68, 0.2); color: #ef4444; transform: scale(1.1); }

/* Modal title */
.auth-form-title { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.auth-form-desc { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 28px; }

/* Login tabs */
.auth-tabs { display: flex; gap: 0; margin-bottom: 24px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); }
.auth-tab { flex: 1; padding: 12px; text-align: center; cursor: pointer; font-size: 14px; color: rgba(255,255,255,0.4); background: transparent; transition: all 0.3s; border: none; }
.auth-tab.active { background: rgba(168, 85, 247, 0.2); color: #a855f7; font-weight: 600; }

/* Form fields */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 8px; font-weight: 500; }
.form-input { width: 100%; padding: 14px 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 10px; font-size: 14px; outline: none; transition: all 0.3s; }
.form-input:focus { border-color: #a855f7; box-shadow: 0 0 20px rgba(168, 85, 247, 0.12); background: rgba(255,255,255,0.06); }
.form-input::placeholder { color: rgba(255,255,255,0.25); }

/* Form actions */
.form-actions { display: flex; gap: 12px; margin-top: 28px; }
.btn-primary { flex: 1; padding: 14px; border-radius: 10px; background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: all 0.3s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4); }

/* Forgot password link */
.auth-link { text-align: right; margin-bottom: 16px; }
.auth-link a { font-size: 13px; color: #a855f7; text-decoration: none; opacity: 0.8; transition: opacity 0.2s; }
.auth-link a:hover { opacity: 1; }

/* Bottom note */
.auth-footer-note { text-align: center; font-size: 12px; color: rgba(255,255,255,0.25); margin-top: 24px; line-height: 1.6; }

/* Registration consent stays visible and easy to reach on narrow auth panels. */
.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 0;
  color: rgba(214,211,220,0.72);
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}
.auth-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #8b5cf6;
}
.auth-consent a {
  color: #c4b5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-consent a:hover { color: #fff; }

/* Avatar upload */
.avatar-upload-area { text-align: center; margin-bottom: 24px; }
.avatar-preview { width: 80px; height: 80px; border-radius: 50%; background-size: cover; background-position: center; margin: 0 auto 12px; border: 3px solid rgba(168, 85, 247, 0.4); display: flex; align-items: center; justify-content: center; font-size: 40px; overflow: hidden; }
.btn-upload-avatar { padding: 8px 20px; border-radius: 8px; background: rgba(168, 85, 247, 0.15); color: #a855f7; border: none; cursor: pointer; font-size: 13px; transition: all 0.3s; }
.btn-upload-avatar:hover { background: rgba(168, 85, 247, 0.25); }
.btn-upload-avatar:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  #loginModal .modal-box.auth-split { flex-direction: column !important; }
  .auth-visual { min-height: 200px; max-height: 240px; flex: unset !important; }
  .auth-form-panel { min-width: unset !important; max-width: none !important; flex: 1 !important; padding: 32px 24px; }
}

/* ReactBits-inspired dark skin */
.modal-overlay {
  background: rgba(6,0,16,0.76);
}

#editProfileModal .modal-box {
  background: rgba(18,15,23,0.96);
  border-color: var(--rb-line);
  box-shadow: var(--rb-shadow);
}

#loginModal .modal-box.auth-split {
  background: var(--rb-bg) !important;
}

.auth-visual {
  background:
    linear-gradient(135deg, rgba(82,39,255,0.38), rgba(18,15,23,0.2) 42%),
    linear-gradient(225deg, rgba(120,209,225,0.2), transparent 46%),
    linear-gradient(180deg, #1a1425 0%, #120F17 58%, #060010 100%);
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.018) 22%, transparent 46%),
    linear-gradient(215deg, transparent 0%, rgba(139,92,246,0.12) 36%, rgba(255,255,255,0.032) 52%, transparent 72%);
  backdrop-filter: blur(10px) saturate(112%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 78%);
  pointer-events: none;
}

.auth-visual-overlay {
  background: linear-gradient(180deg, rgba(18,15,23,0.06) 0%, rgba(18,15,23,0.9) 100%);
}

.auth-visual-title {
  color: var(--rb-text);
  text-shadow: 0 0 30px rgba(82,39,255,0.56);
}

.auth-visual-subtitle {
  color: rgba(218,209,246,0.8);
}

.auth-orb {
  border-radius: 8px;
  filter: blur(28px);
  opacity: 0.32;
}

.auth-orb-1 {
  background: linear-gradient(135deg, rgba(82,39,255,0.58), transparent);
}

.auth-orb-2 {
  background: linear-gradient(135deg, rgba(120,209,225,0.44), transparent);
}

.auth-orb-3 {
  background: linear-gradient(135deg, rgba(217,70,239,0.36), transparent);
}

.auth-form-panel {
  background: rgba(18,15,23,0.97);
  border-left: 1px solid var(--rb-line);
}

.auth-form-title {
  color: var(--rb-text);
}

.auth-form-desc,
.form-label,
.auth-footer-note {
  color: var(--rb-muted);
}

.auth-tabs {
  background: rgba(255,255,255,0.032);
  border-color: var(--rb-line);
}

.auth-tab {
  color: rgba(180,151,207,0.7);
}

.auth-tab.active {
  background: rgba(82,39,255,0.22);
  color: #dad1f6;
}

.form-input {
  background: rgba(6,0,16,0.46);
  border-color: var(--rb-line);
  color: var(--rb-text);
}

.form-input:focus {
  border-color: rgba(139,92,246,0.76);
  background: rgba(18,15,23,0.78);
  box-shadow: 0 0 28px rgba(82,39,255,0.2);
}

.form-input::placeholder {
  color: rgba(180,151,207,0.5);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rb-primary), var(--rb-primary-3));
  box-shadow:
    0 8px 26px rgba(82,39,255,0.36),
    0 0 0 1px rgba(255,255,255,0.1) inset;
}

.btn-primary:hover {
  box-shadow:
    0 12px 34px rgba(82,39,255,0.48),
    0 0 0 1px rgba(255,255,255,0.16) inset;
}

.auth-link a {
  color: #dad1f6;
}

#btnSendRegSms,
#btnSendResetSms {
  background: rgba(82,39,255,0.16) !important;
  color: #dad1f6 !important;
  border: 1px solid rgba(139,92,246,0.32) !important;
}

#btnSendRegSms:hover,
#btnSendResetSms:hover {
  background: rgba(82,39,255,0.26) !important;
  color: #fff !important;
}

.avatar-preview {
  border-color: rgba(139,92,246,0.52);
  background-color: rgba(22,16,38,0.78);
  box-shadow: 0 0 24px rgba(82,39,255,0.22);
}

.modal-close {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--rb-line);
}

/* Minimal black pass with subtle ReactBits-style border and shine */
.modal-overlay {
  background: rgba(0,0,0,0.76);
}

#editProfileModal .modal-box,
#loginModal .modal-box.auth-split {
  background: #050506 !important;
}

.auth-visual {
  background:
    linear-gradient(128deg, rgba(255,255,255,0.055) 0%, transparent 30%),
    linear-gradient(215deg, rgba(139,92,246,0.13) 0%, transparent 42%),
    #0b0b10;
}

.auth-visual-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(5,5,6,0.9) 100%);
}

.auth-visual-title {
  text-shadow: 0 0 20px rgba(124,58,237,0.22);
}

.auth-visual-subtitle {
  color: rgba(214,211,220,0.72);
}

.auth-orb {
  opacity: 0.12;
  filter: blur(34px);
}

.auth-form-panel {
  position: relative;
  background: rgba(7,7,9,0.98);
  border-left-color: rgba(255,255,255,0.08);
}

.auth-form-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 1px solid rgba(139,92,246,0.18);
  pointer-events: none;
}

.auth-tabs,
.form-input {
  background: rgba(3,3,5,0.62);
  border-color: rgba(255,255,255,0.08);
}

.auth-tab.active {
  background: rgba(139,92,246,0.12);
  color: rgba(244,244,245,0.94);
}

.form-input:focus {
  border-color: rgba(139,92,246,0.34);
  background: rgba(8,8,11,0.86);
  box-shadow: 0 0 20px rgba(124,58,237,0.12);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  box-shadow:
    0 10px 26px rgba(124,58,237,0.24),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 46%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  animation: rbShineSweep 6s ease-in-out infinite;
  pointer-events: none;
}

#btnSendRegSms,
#btnSendResetSms {
  background: rgba(255,255,255,0.045) !important;
  color: rgba(244,244,245,0.86) !important;
  border-color: rgba(139,92,246,0.22) !important;
}

#btnSendRegSms:hover,
#btnSendResetSms:hover {
  background: rgba(139,92,246,0.12) !important;
}

/* New-user content-identification notice */
body.new-user-welcome-open { overflow: hidden; }
.new-user-welcome-overlay {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(10px);
}
.new-user-welcome-overlay[hidden] { display: none; }
.new-user-welcome-dialog {
  width: min(806px, 100%);
  max-height: min(740px, calc(100vh - 48px));
  overflow: auto;
  color: #f6f7f8;
  background: #111315;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  outline: none;
  animation: newUserWelcomeEnter 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
#newUserWelcomeNotice .new-user-welcome-dialog:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6) !important;
}
@keyframes newUserWelcomeEnter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.new-user-welcome-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 31px 34px 28px;
  border-bottom: 1px solid rgba(231, 235, 239, 0.1);
}
.new-user-welcome-head h2 {
  margin: 0;
  color: #f6f7f8;
  font-size: 24px;
  font-weight: 760;
  line-height: 1.3;
}
.new-user-welcome-close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  margin: -6px -7px 0 0;
  padding: 0;
  color: #a4acaa;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.new-user-welcome-close:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.new-user-welcome-close:focus-visible,
.new-user-welcome-confirm:focus-visible,
.new-user-welcome-switch:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}
.new-user-welcome-body {
  display: grid;
  gap: 22px;
  padding: 32px 34px 29px;
}
.new-user-welcome-body p {
  max-width: none;
  margin: 0;
  color: #b0b4bc;
  font-size: 15px;
  line-height: 1.9;
}
.new-user-welcome-setting {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin: 0 34px;
  padding: 21px;
  background: #181d20;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
}
.new-user-welcome-switch {
  position: relative;
  width: 46px;
  height: 27px;
  margin: 2px 0 0;
  padding: 0;
  background: #44474c;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease;
}
.new-user-welcome-switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 19px;
  height: 19px;
  background: #f2f2f0;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease;
}
.new-user-welcome-switch.is-enabled { background: #f2f2f0; }
.new-user-welcome-switch.is-enabled .new-user-welcome-switch-thumb { background: #111315; }
.new-user-welcome-switch.is-enabled .new-user-welcome-switch-thumb { transform: translateX(19px); }
.new-user-welcome-setting h3 {
  margin: 0 0 4px;
  color: #f6f7f8;
  font-size: 16px;
  font-weight: 740;
  line-height: 1.45;
}
.new-user-welcome-setting p {
  margin: 0;
  color: #b0b4bc;
  font-size: 13px;
  line-height: 1.75;
}
.new-user-welcome-actions {
  display: flex;
  justify-content: flex-end;
  padding: 26px 34px 30px;
}
.new-user-welcome-confirm {
  min-height: 48px;
  padding: 0 24px;
  color: #0c0d0d;
  background: #f2f2f0;
  border: 0;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.new-user-welcome-confirm:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28); }
.new-user-welcome-confirm:active { transform: translateY(0); }
@media (max-width: 600px) {
  .new-user-welcome-overlay { align-items: end; padding: 12px; }
  .new-user-welcome-dialog { max-height: calc(100vh - 24px); }
  .new-user-welcome-head { padding: 22px 20px 18px; }
  .new-user-welcome-body { padding: 20px 20px 18px; }
  .new-user-welcome-body p { font-size: 14px; line-height: 1.8; }
  .new-user-welcome-setting { grid-template-columns: 46px minmax(0, 1fr); gap: 13px; margin: 0 20px; padding: 15px; }
  .new-user-welcome-actions { padding: 22px 20px 20px; }
  .new-user-welcome-confirm { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .new-user-welcome-dialog { animation: none; }
  .new-user-welcome-confirm { transition: none; }
}

/* Graphical CAPTCHA field (one-time gate before SMS sends) */
.auth-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-captcha-img {
  flex: 0 0 auto;
  width: 112px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(139,92,246,0.22);
  background: #0a0a10;
  object-fit: contain;
  padding: 2px;
  cursor: pointer;
  transition: border-color 160ms ease, opacity 160ms ease;
}
.auth-captcha-img:hover {
  border-color: rgba(139,92,246,0.5);
}
.auth-captcha-img:focus-visible {
  outline: 2px solid rgba(139,92,246,0.55);
  outline-offset: 2px;
}
.auth-captcha-img.auth-captcha-loading {
  opacity: 0.45;
  pointer-events: none;
}
.auth-captcha-input {
  flex: 1;
  min-width: 0;
}
@media (max-width: 600px) {
  .auth-captcha-row { flex-wrap: wrap; }
  .auth-captcha-input { flex-basis: 100%; }
}

/* Graphical CAPTCHA confirmation dialog (shown when requesting an SMS code) */
.auth-captcha-dlg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}
.auth-captcha-dlg-overlay[hidden] {
  display: none;
}
.auth-captcha-dlg {
  width: 100%;
  max-width: 348px;
  padding: 20px;
  background: #0b0b10;
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 14px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.auth-captcha-dlg-overlay.show .auth-captcha-dlg {
  animation: authCaptchaDlgIn 160ms ease;
}
@keyframes authCaptchaDlgIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.auth-captcha-dlg-head {
  margin-bottom: 14px;
}
.auth-captcha-dlg-title {
  font-size: 17px;
  font-weight: 700;
  color: #f4f4f5;
}
.auth-captcha-dlg-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(214, 211, 220, 0.72);
}
.auth-captcha-dlg-error {
  margin-top: 10px;
  font-size: 13px;
  color: #f87171;
}
.auth-captcha-dlg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.auth-captcha-dlg-cancel {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 244, 245, 0.86);
  font-size: 13px;
  cursor: pointer;
  transition: background 160ms ease;
}
.auth-captcha-dlg-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}
.auth-captcha-dlg-confirm {
  min-width: 96px;
  padding: 8px 16px;
  font-size: 13px;
}
@media (prefers-reduced-motion: reduce) {
  .auth-captcha-dlg-overlay.show .auth-captcha-dlg { animation: none; }
}

/* Password reveal toggle — 密码输入框内的显示/隐藏眼睛按钮
   结构: <div class="form-input-wrap"><input class="form-input"> <button class="password-reveal"></div>
   行为由 static/js/modules/auth/password-reveal.js 事件委托接管 */
.form-input-wrap { position: relative; }
.form-input-wrap > .form-input { padding-right: 46px; }
.password-reveal {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  z-index: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.password-reveal:hover { color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.06); }
.password-reveal[aria-pressed="true"] { color: #a78bfa; }
.password-reveal:focus-visible { outline: 2px solid rgba(139, 92, 246, 0.55); outline-offset: 1px; }
.password-reveal .ui-icon { width: 18px; height: 18px; }
