/* login.css — the account button in the header and the phone+OTP window.
   Kept separate from style.css so the original stylesheet is never touched. */

/* ---- header account area ---- */
.acct { position: relative; display: flex; align-items: center; }
.acct__in { position: relative; }
.acct__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--field); color: var(--ink);
  font: inherit; font-size: 0.86rem; cursor: pointer;
}
.acct__chip:hover { border-color: var(--g2); }
.acct__dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #04150e; font-weight: 700; font-size: 0.85rem;
}
.acct__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__bal { font-weight: 700; color: var(--g3); }

.acct__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 45;
  display: flex; flex-direction: column; min-width: 180px; padding: 6px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--card, #fff); box-shadow: var(--shadow);
}
.acct__menu button {
  text-align: left; padding: 9px 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); font: inherit; font-size: 0.86rem; cursor: pointer;
}
.acct__menu button:hover { background: color-mix(in srgb, var(--g2) 14%, transparent); }

@media (max-width: 720px) { .acct__name { display: none; } }

/* ---- login window ---- */
.login-card { width: min(420px, 96vw); }
.login-step { display: flex; flex-direction: column; }
.login-label { margin: 6px 0 6px; font-size: 0.82rem; font-weight: 600; }
.login-phone { display: flex; align-items: stretch; gap: 8px; }
.login-cc {
  display: grid; place-items: center; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--field); font-size: 0.92rem;
}
.login-otp { letter-spacing: 0.5em; text-align: center; font-size: 1.2rem; }
.login-go { margin-top: 16px; justify-content: center; }
.login-hint { margin: 12px 0 0; font-size: 0.84rem; text-align: center; }
.login-link {
  border: 0; background: none; padding: 0; font: inherit; font-size: inherit;
  color: var(--g3); text-decoration: underline; cursor: pointer;
}
.login-err {
  margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 0.85rem;
  background: color-mix(in srgb, #ef4444 14%, transparent); color: #b91c1c;
}
.login-foot { margin: 16px 0 0; font-size: 0.75rem; color: var(--ink-muted); text-align: center; }
