/* ===== UES Auth Overlay ===== */
#auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(139,92,246,0.18), transparent),
              rgba(7, 7, 12, 0.92);
  backdrop-filter: blur(8px);
}
#auth-overlay.show { display: flex; }

.auth-card {
  width: 420px;
  max-width: 92vw;
  background: var(--bg-card, #15161d);
  border: 1px solid var(--border-light, #262735);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  overflow: hidden;
  animation: authPop .28s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes authPop {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-head {
  padding: 26px 30px 6px;
  text-align: center;
}
.auth-logo {
  height: 30px; width: auto; object-fit: contain; margin-bottom: 12px;
}
.auth-brandline {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--purple-primary, #8b5cf6);
}
.auth-title { font-size: 21px; font-weight: 800; color: var(--text-darkblack, #fff); margin: 8px 0 4px; }
.auth-sub   { font-size: 12.5px; color: var(--text-muted, #9aa0b4); line-height: 1.5; }

.auth-body { padding: 14px 30px 26px; }

.auth-field { margin-bottom: 13px; text-align: left; }
.auth-field label {
  display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted, #9aa0b4); margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  background: var(--bg-input, #0d0e12);
  border: 1px solid var(--border-light, #262735);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text-darkblack, #fff);
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus {
  border-color: var(--purple-primary, #8b5cf6);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.18);
}

.auth-code-input {
  text-align: center; letter-spacing: 12px; font-family: Consolas, monospace;
  font-size: 24px; font-weight: 700; padding: 12px;
}

.auth-btn {
  width: 100%; border: none; cursor: pointer;
  background: var(--purple-gradient, linear-gradient(135deg,#8b5cf6,#6d28d9));
  color: #fff; font-size: 14px; font-weight: 700;
  padding: 12px; border-radius: 10px; margin-top: 6px;
  transition: transform .08s, filter .15s;
}
.auth-btn:hover { filter: brightness(1.08); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; }

.auth-links { margin-top: 16px; text-align: center; font-size: 12.5px; color: var(--text-muted,#9aa0b4); }
.auth-link { color: var(--purple-primary, #8b5cf6); cursor: pointer; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

.auth-alt { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-light,#262735); text-align: center; font-size: 12.5px; color: var(--text-muted,#9aa0b4); }

.auth-msg { font-size: 12.5px; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; display: none; }
.auth-msg.err  { display:block; background: rgba(239,68,68,0.12);  color:#f87171; border:1px solid rgba(239,68,68,0.25); }
.auth-msg.ok   { display:block; background: rgba(16,185,129,0.12); color:#34d399; border:1px solid rgba(16,185,129,0.25); }
.auth-msg.info { display:block; background: rgba(139,92,246,0.12); color:#a78bfa; border:1px solid rgba(139,92,246,0.25); }

.auth-view { display: none; }
.auth-view.active { display: block; }

.auth-spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%;
  display: inline-block; vertical-align: -2px; margin-right: 7px;
  animation: authSpin .7s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

.auth-hwid { margin-top: 14px; font-size: 10px; color: var(--text-dim, #4b5060); font-family: Consolas, monospace; word-break: break-all; text-align:center; }

/* ===== Professional OTP / verification screen ===== */
.otp-header { text-align: center; margin-bottom: 20px; }
.otp-icon {
  width: 58px; height: 58px; margin: 0 auto 14px;
  border-radius: 16px; display: grid; place-items: center;
  color: var(--purple-primary, #7c3aed);
  background: var(--purple-light, #f5f3ff);
  border: 1px solid var(--purple-border, #ddd6fe);
  box-shadow: 0 8px 22px -12px rgba(124,58,237,0.5);
}
.otp-icon svg { width: 26px; height: 26px; }
.otp-icon-lock { color: var(--color-success, #059669); background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.25); box-shadow: 0 8px 22px -12px rgba(16,185,129,0.5); }
.otp-sent { font-size: 13.5px; color: var(--text-muted, #64748b); margin: 0; }
.otp-email { font-size: 14px; font-weight: 700; color: var(--text-darkblack, #0f172a); margin: 3px 0 0; word-break: break-word; }

.otp-group { display: flex; justify-content: center; gap: 9px; margin-bottom: 18px; }
.otp-box {
  width: 46px; height: 56px; text-align: center;
  font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 700;
  color: var(--text-darkblack, #0f172a);
  background: var(--bg-input, #f8fafc);
  border: 1.5px solid var(--border-light, #e2e8f0);
  border-radius: 12px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s, transform .1s;
  caret-color: var(--purple-primary, #7c3aed);
}
.otp-box:hover { border-color: var(--border-strong, #cbd5e1); }
.otp-box:focus {
  border-color: var(--purple-primary, #7c3aed);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(124,58,237,0.15);
  transform: translateY(-1px);
}
.otp-box.filled { border-color: var(--purple-primary, #7c3aed); background: #ffffff; }

@media (max-width: 460px) {
  .otp-group { gap: 6px; }
  .otp-box { width: 40px; height: 50px; font-size: 21px; }
}

.otp-timer { color: var(--text-dim, #94a3b8); font-weight: 600; margin-left: 4px; }

.auth-trust {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border-light, #e2e8f0);
  font-size: 11px; color: var(--text-dim, #94a3b8); text-align: center; line-height: 1.4;
}
.auth-trust svg { width: 13px; height: 13px; flex: none; color: var(--color-success, #059669); }
