/* =====================================================
   V2HUB — Login page (two-step, split box)
   Uses the public site navbar + footer (site.css)
   ===================================================== */

.login-main {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 20px 80px;
}

.login-main *, .login-main *::before, .login-main *::after { box-sizing: border-box; }

/* soft background glow + grid */
.login-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 380px at 20% 10%, rgba(79, 140, 255, 0.14), transparent 70%),
    radial-gradient(600px 360px at 85% 90%, rgba(34, 211, 238, 0.08), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
}

/* ---------- Box ---------- */
.login-box {
  position: relative;
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--s-panel);
  border: 1px solid var(--s-line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  animation: loginBoxIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* ---------- Left: form ---------- */
.login-form-side {
  display: flex;
  flex-direction: column;
  padding: 40px 48px 32px;
}

.login-progress {
  display: flex;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.login-progress li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7686;
  border-bottom: 2px solid var(--s-line);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.login-progress li span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid currentColor;
  transition: background 0.3s ease, color 0.3s ease;
}
.login-progress li.is-active { color: var(--s-text); border-bottom-color: var(--s-accent); }
.login-progress li.is-active span { color: #fff; background: var(--s-accent); border-color: var(--s-accent); }
.login-progress li.is-done { color: var(--s-dim); border-bottom-color: rgba(79, 140, 255, 0.5); }
.login-progress li.is-done span { color: var(--s-accent); border-color: var(--s-accent); }

.login-notice {
  display: flex;
  gap: 10px;
  padding: 11px 13px;
  margin-bottom: 26px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #f5d48a;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.28);
}
.login-notice i { margin-top: 2px; color: #f59e0b; }
.login-notice a { color: #fbbf24; text-decoration: underline; }

.login-form { flex: 1; }

.login-step[hidden] { display: none; }
.login-step.is-entering { animation: loginIn 0.35s ease both; }
.login-step.is-entering.from-right { animation-name: loginInRight; }
.login-step.is-entering.from-left { animation-name: loginInLeft; }

.login-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--s-text);
}
.login-title-sm { margin-bottom: 18px; font-size: 1.5rem; }
.login-sub { margin: 0 0 24px; font-size: 0.92rem; line-height: 1.55; color: var(--s-dim); }

.login-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--s-text);
}
.login-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.login-forgot { font-size: 0.8rem; color: var(--s-accent) !important; text-decoration: none; }
.login-forgot:hover { text-decoration: underline; }

/* ---------- Inputs ---------- */
.login-input-wrap { position: relative; }
.login-input-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #6b7686;
  pointer-events: none;
  transition: color 0.15s ease;
}
.login-input-wrap:focus-within .login-input-icon { color: var(--s-accent); }

.login-input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--s-text);
  background: var(--s-bg);
  border: 1px solid var(--s-line);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-input.has-icon { padding-left: 42px; }
.login-input.has-toggle { padding-right: 50px; }
.login-input::placeholder { color: #6b7686; }
.login-input:focus { border-color: var(--s-accent); box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.2); }
.login-input.is-invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }

.login-field-error { margin: 8px 0 0; font-size: 0.8rem; color: #f87171; }
.login-caps { margin: 8px 0 0; font-size: 0.78rem; color: #fbbf24; }
.login-caps i { margin-right: 4px; }

.login-pw-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--s-dim);
  background: none;
  border: none;
  cursor: pointer;
}
.login-pw-toggle:hover { color: var(--s-text); }

/* ---------- Buttons ---------- */
.login-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 50px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  background: var(--s-accent);
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.28);
  transition: background 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.login-btn:hover { background: #2f74e6; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(79, 140, 255, 0.4); }
.login-btn:disabled { cursor: progress; transform: none; }
.login-btn-label { display: inline-flex; align-items: center; gap: 9px; }
.login-btn-label .fa-arrow-right { transition: transform 0.2s ease; }
.login-btn:hover .fa-arrow-right { transform: translateX(3px); }

/* shine sweep */
.login-btn:not(.login-btn-ghost)::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.login-btn:not(.login-btn-ghost):hover::after { left: 130%; }

.login-btn-ghost {
  margin-top: 0;
  color: var(--s-text) !important;
  background: transparent;
  border-color: var(--s-line);
  box-shadow: none;
}
.login-btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: #3a4a60; box-shadow: none; }

.login-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50% !important;
  animation: loginSpin 0.7s linear infinite;
}
.login-btn-busy { display: none; margin-left: 10px; font-weight: 500; }
.login-btn.is-loading .login-btn-label { display: none; }
.login-btn.is-loading .login-spinner { display: block; }
#loginBtn.is-loading .login-btn-busy { display: inline; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 14px;
  font-size: 0.78rem;
  color: #6b7686;
}
.login-divider::before,
.login-divider::after { content: ""; flex: 1; height: 1px; background: var(--s-line); }

.login-legal {
  display: flex;
  gap: 8px;
  margin: 28px 0 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #6b7686;
}
.login-legal i { margin-top: 2px; color: #4ade80; }

.login-btn:focus-visible,
.login-edit:focus-visible,
.login-pw-toggle:focus-visible,
.login-main a:focus-visible {
  outline: 2px solid var(--s-accent);
  outline-offset: 2px;
}

/* ---------- Messages ---------- */
.login-messages { display: grid; gap: 8px; }
.login-messages:not(:empty) { margin-bottom: 18px; }
.login-msg {
  display: flex;
  gap: 10px;
  padding: 11px 13px;
  font-size: 0.84rem;
  line-height: 1.45;
  animation: loginIn 0.3s ease both;
}
.login-msg i { margin-top: 2px; }
.login-msg-error { color: #fecaca; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); }
.login-msg-error i { color: #f87171; }
.login-msg-ok { color: #bbf7d0; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); }
.login-msg-ok i { color: #4ade80; }

/* ---------- Account card (step 2) ---------- */
.login-account {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 22px;
  background: var(--s-bg);
  border: 1px solid var(--s-line);
  overflow: hidden;
}
/* accent line that draws across the top when the card appears */
.login-account::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #4f8cff, #22d3ee);
  transform-origin: left;
}

.login-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4f8cff, #2563eb);
  border-radius: 50% !important;
}
.login-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% !important;
}
.login-avatar img[hidden] { display: none; }
.login-avatar-check {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  color: #fff;
  background: #22c55e;
  border: 2px solid var(--s-bg);
  border-radius: 50% !important;
}

.login-account-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.login-account-name {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--s-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.login-account-email {
  font-size: 0.84rem;
  color: var(--s-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-edit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--s-text);
  background: transparent;
  border: 1px solid var(--s-line);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.login-edit:hover { background: var(--s-panel); border-color: var(--s-accent); }
.login-edit:disabled { opacity: 0.5; cursor: not-allowed; }
.login-edit i { font-size: 0.68rem; color: var(--s-accent); }

/* found-account entrance */
.login-step.is-entering .login-account { animation: loginCard 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.login-step.is-entering .login-account::before { animation: loginLine 0.7s ease 0.15s both; }
.login-step.is-entering .login-avatar { animation: loginPop 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) 0.1s both; }
.login-step.is-entering .login-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(79, 140, 255, 0.6);
  animation: loginRing 1s ease-out 0.3s both;
}
.login-step.is-entering .login-avatar-check { animation: loginPop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) 0.45s both; }
.login-step.is-entering .login-account-text > * { animation: loginIn 0.4s ease both; }
.login-step.is-entering .login-account-name { animation-delay: 0.18s; }
.login-step.is-entering .login-account-email { animation-delay: 0.26s; }
.login-step.is-entering .login-edit { animation: loginIn 0.4s ease 0.32s both; }

.is-shaking { animation: loginShake 0.36s ease; }

/* ---------- Right: info panel ---------- */
.login-info-side {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 44px;
  color: #fff;
  background: #0b1a3a;
}
.login-info-bg {
  position: absolute;
  inset: -20px;
  background:
    linear-gradient(180deg, rgba(8, 15, 33, 0.2) 0%, rgba(8, 15, 33, 0.92) 72%),
    url('https://images.unsplash.com/photo-1544197150-b99a580bb7a8?auto=format&fit=crop&w=1200&q=70') center / cover no-repeat;
  animation: loginDrift 24s ease-in-out infinite alternate;
}
.login-info-inner { position: relative; }

.login-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 11px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(8, 15, 33, 0.55);
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.login-live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50% !important;
}
.login-live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #4ade80;
  border-radius: 50% !important;
  animation: loginPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.login-info-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.login-info-text { margin: 0 0 22px; font-size: 0.9rem; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }

.login-info-list { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 11px; }
.login-info-list li { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.92); }
.login-info-list li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  color: #9ec1ff;
  background: rgba(79, 140, 255, 0.16);
  border: 1px solid rgba(79, 140, 255, 0.3);
}

.login-info-stats {
  margin: 0;
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.login-info-stats dt { margin-bottom: 4px; font-size: 0.74rem; color: rgba(255, 255, 255, 0.65); }
.login-info-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.login-info-stats small { margin-left: 2px; font-size: 0.62em; color: #9ec1ff; }

/* ---------- Keyframes ---------- */
@keyframes loginBoxIn { from { opacity: 0; transform: translateY(18px) scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes loginIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes loginInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes loginInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes loginCard { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes loginLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes loginPop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes loginRing { to { box-shadow: 0 0 0 14px rgba(79, 140, 255, 0); } }
@keyframes loginSpin { to { transform: rotate(360deg); } }
@keyframes loginPing { 75%, 100% { transform: scale(2.4); opacity: 0; } }
@keyframes loginDrift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.08) translate(-10px, -6px); } }
@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .login-box { grid-template-columns: 1fr; max-width: 480px; min-height: 0; }
  .login-info-side { display: none; }
  .login-form-side { padding: 32px 28px 26px; }
}

@media (max-width: 420px) {
  .login-main { padding: 28px 12px 48px; }
  .login-form-side { padding: 26px 18px 22px; }
  .login-account { flex-wrap: wrap; }
  .login-edit { margin-left: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-box,
  .login-msg,
  .login-info-bg,
  .login-live-dot::after,
  .login-step.is-entering,
  .login-step.is-entering *,
  .login-step.is-entering .login-account::before,
  .login-step.is-entering .login-avatar::after,
  .is-shaking { animation: none !important; }
  .login-btn::after { display: none; }
}

/* ======================================================
   Rounded corners — login page only.
   site.css forces radius 0 on `.site-body .site-main *`,
   so these selectors are scoped one level deeper to win.
   ====================================================== */
.site-body .login-main .login-box { border-radius: 20px; overflow: hidden; }
.site-body .login-main .login-info-side { border-radius: 0 20px 20px 0; }
.site-body .login-main .login-notice,
.site-body .login-main .login-msg { border-radius: 10px; }
.site-body .login-main .login-input { border-radius: 12px; }
.site-body .login-main .login-pw-toggle { border-radius: 0 12px 12px 0; }
.site-body .login-main .login-btn { border-radius: 12px; }
.site-body .login-main .login-account { border-radius: 14px; }
.site-body .login-main .login-edit { border-radius: 999px; }
.site-body .login-main .login-progress li span { border-radius: 50%; }
.site-body .login-main .login-progress li { border-radius: 0; }
.site-body .login-main .login-info-list li > span { border-radius: 9px; }
.site-body .login-main .login-live { border-radius: 999px; }
.site-body .login-main .login-avatar,
.site-body .login-main .login-avatar img,
.site-body .login-main .login-avatar-check,
.site-body .login-main .login-avatar::after,
.site-body .login-main .login-spinner,
.site-body .login-main .login-live-dot,
.site-body .login-main .login-live-dot::after { border-radius: 50%; }

/* focus rings follow the rounded shape */
.site-body .login-main .login-btn:focus-visible,
.site-body .login-main .login-edit:focus-visible { outline-offset: 3px; }

@media (max-width: 880px) {
  .site-body .login-main .login-box { border-radius: 18px; }
}

/* ======================================================
   REGISTER — reversed split (info left, form right)
   ====================================================== */
.login-box.is-reverse .login-info-side { order: 0; }
.login-box.is-reverse .login-form-side { order: 1; }
.site-body .login-main .login-box.is-reverse .login-info-side { border-radius: 20px 0 0 20px; }

.reg-info-bg {
  background:
    linear-gradient(180deg, rgba(8, 15, 33, 0.25) 0%, rgba(8, 15, 33, 0.93) 70%),
    url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1200&q=70') center / cover no-repeat;
}

/* the info panel's own entrance */
.login-info-inner > * { animation: loginIn 0.6s ease both; }
.login-info-inner > *:nth-child(2) { animation-delay: 0.08s; }
.login-info-inner > *:nth-child(3) { animation-delay: 0.16s; }
.login-info-inner > *:nth-child(4) { animation-delay: 0.24s; }
.login-info-inner > *:nth-child(5) { animation-delay: 0.32s; }

.reg-steps-info { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 14px; }
.reg-steps-info li { display: flex; align-items: center; gap: 13px; }
.reg-steps-info li > span {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: rgba(79, 140, 255, 0.22);
  border: 1px solid rgba(79, 140, 255, 0.45);
}
.reg-steps-info strong { display: block; font-size: 0.9rem; font-weight: 600; }
.reg-steps-info small { font-size: 0.78rem; color: rgba(255, 255, 255, 0.65); }
.site-body .login-main .reg-steps-info li > span { border-radius: 50%; }

.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reg-gap { margin-top: 16px; }

.login-hint { margin: 7px 0 0; font-size: 0.76rem; color: #7d8898; }
.reg-match.is-ok { color: #4ade80; }
.reg-match.is-bad { color: #fbbf24; }

/* password strength meter */
.reg-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 9px; }
.reg-strength span {
  height: 4px;
  background: var(--s-line);
  transition: background 0.25s ease, transform 0.25s ease;
  transform-origin: left;
}
.site-body .login-main .reg-strength span { border-radius: 4px; }
.reg-strength[data-level="1"] span:nth-child(-n+1) { background: #ef4444; }
.reg-strength[data-level="2"] span:nth-child(-n+2) { background: #f59e0b; }
.reg-strength[data-level="3"] span:nth-child(-n+3) { background: #4f8cff; }
.reg-strength[data-level="4"] span { background: #22c55e; }

@media (max-width: 880px) {
  /* form first on small screens */
  .login-box.is-reverse .login-form-side { order: 0; }
}

@media (max-width: 420px) {
  .reg-row { grid-template-columns: 1fr; gap: 0; }
  .reg-row > div + div { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-info-inner > * { animation: none !important; }
  .reg-strength span { transition: none; }
}

/* ======================================================
   FORGOT / RESET PASSWORD
   ====================================================== */
.rec-info-bg {
  background:
    linear-gradient(180deg, rgba(8, 15, 33, 0.25) 0%, rgba(8, 15, 33, 0.93) 70%),
    url('https://images.unsplash.com/photo-1563986768609-322da13575f3?auto=format&fit=crop&w=1200&q=70') center / cover no-repeat;
}

/* key badge above the title, with a gentle wobble on load */
.rec-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--s-accent);
  background: rgba(79, 140, 255, 0.12);
  border: 1px solid rgba(79, 140, 255, 0.35);
  animation: recWobble 0.9s cubic-bezier(0.3, 1.4, 0.5, 1) 0.15s both;
}
.site-body .login-main .rec-icon { border-radius: 14px; }

.rec-avatar { font-size: 1.15rem; background: linear-gradient(135deg, #22c55e, #15803d); }
.rec-sent { margin-bottom: 18px; animation: loginCard 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.rec-sent .login-avatar { animation: loginPop 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) 0.1s both; }
.rec-sent .login-avatar-check { animation: loginPop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) 0.45s both; }
.rec-sent::before { animation: loginLine 0.7s ease 0.15s both; background: linear-gradient(90deg, #22c55e, #4ade80); }
a.login-edit { text-decoration: none; }

.rec-expiry { margin: 0; }

/* 6-box code input */
.rec-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.rec-otp-box {
  width: 100%;
  height: 56px;
  padding: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--s-text);
  background: var(--s-bg);
  border: 1px solid var(--s-line);
  outline: none;
  caret-color: var(--s-accent);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.site-body .login-main .rec-otp-box { border-radius: 12px; }
.rec-otp-box:focus { border-color: var(--s-accent); box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.2); transform: translateY(-2px); }
.rec-otp-box.is-filled { border-color: rgba(79, 140, 255, 0.55); background: rgba(79, 140, 255, 0.06); }
.rec-otp.is-invalid .rec-otp-box:not(.is-filled) { border-color: #ef4444; }
.rec-otp.is-complete .rec-otp-box { animation: recPulse 0.6s ease both; }
.rec-otp.is-complete .rec-otp-box:nth-child(2) { animation-delay: 0.04s; }
.rec-otp.is-complete .rec-otp-box:nth-child(3) { animation-delay: 0.08s; }
.rec-otp.is-complete .rec-otp-box:nth-child(4) { animation-delay: 0.12s; }
.rec-otp.is-complete .rec-otp-box:nth-child(5) { animation-delay: 0.16s; }
.rec-otp.is-complete .rec-otp-box:nth-child(6) { animation-delay: 0.2s; }

/* resend row */
.rec-resend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 0;
  font-size: 0.84rem;
  color: var(--s-dim);
}
.rec-resend-btn {
  padding: 4px 6px;
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--s-accent);
  background: none;
  border: none;
  cursor: pointer;
}
.rec-resend-btn:hover:not(:disabled) { text-decoration: underline; }
.rec-resend-btn:disabled { color: #6b7686; cursor: default; font-variant-numeric: tabular-nums; }
.rec-resend-btn:focus-visible { outline: 2px solid var(--s-accent); outline-offset: 2px; }

.rec-tip {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(8, 15, 33, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.site-body .login-main .rec-tip { border-radius: 12px; }
.rec-tip i { margin-top: 2px; color: #fbbf24; }

.login-progress li span i { font-size: 0.6rem; }

@keyframes recWobble {
  0% { opacity: 0; transform: scale(0.5) rotate(-30deg); }
  60% { opacity: 1; transform: scale(1.08) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes recPulse {
  0% { transform: none; }
  40% { transform: translateY(-4px); border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  100% { transform: none; }
}

@media (max-width: 420px) {
  .rec-otp { gap: 6px; }
  .rec-otp-box { height: 48px; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rec-icon, .rec-sent, .rec-sent *, .rec-sent::before, .rec-otp.is-complete .rec-otp-box { animation: none !important; }
  .rec-otp-box:focus { transform: none; }
}
