.account-button {
  align-items: center;
  background: #14243b;
  border: 1px solid #14243b;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  gap: .45rem;
  min-height: 42px;
  padding: .65rem 1rem;
}

.account-button.signed-in {
  background: #eaf3ff;
  border-color: #bfdcff;
  color: #0b5dbb;
}

.account-button .account-dot {
  background: #fff;
  border-radius: 50%;
  height: .55rem;
  width: .55rem;
}

.account-button.signed-in .account-dot { background: #18a66a; }

.account-dialog {
  border: 0;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(18, 36, 60, .25);
  color: #17263b;
  max-width: 470px;
  padding: 0;
  width: calc(100% - 32px);
}

.account-dialog::backdrop { background: rgba(10, 25, 45, .58); }

.account-dialog-inner { padding: 2rem; }

.account-dialog h2 {
  font-size: clamp(1.65rem, 5vw, 2.2rem);
  line-height: 1.1;
  margin: .35rem 0 .7rem;
}

.account-dialog p { color: #637187; line-height: 1.55; margin: 0 0 1.25rem; }

.account-dialog .dialog-close {
  background: #eef3f8;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.45rem;
  height: 38px;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
}

.account-tabs {
  background: #eef3f8;
  border-radius: 14px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.2rem;
  padding: 4px;
}

.account-tabs button {
  background: transparent;
  border: 0;
  border-radius: 11px;
  color: #607086;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: .7rem;
}

.account-tabs button.active { background: #fff; box-shadow: 0 3px 12px rgba(32, 59, 92, .1); color: #0877f9; }

.account-form { display: grid; gap: .9rem; }

.account-form label { color: #34465e; display: grid; font-size: .88rem; font-weight: 800; gap: .4rem; }

.account-form input {
  border: 1px solid #cdd8e5;
  border-radius: 12px;
  font: inherit;
  min-height: 48px;
  padding: 0 .85rem;
}

.account-form input:focus { border-color: #0877f9; box-shadow: 0 0 0 3px rgba(8, 119, 249, .14); outline: none; }

.account-password-group { display: grid; gap: .4rem; }
.account-password-field { display: grid; gap: .5rem; grid-template-columns: minmax(0, 1fr) auto; }
.account-password-field input { box-sizing: border-box; font-size: 1rem; min-width: 0; width: 100%; }
.account-password-toggle {
  background: #eef3f8;
  border: 1px solid #cdd8e5;
  border-radius: 12px;
  color: #0b5dbb;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  min-height: 48px;
  padding: .5rem .75rem;
}
.account-password-toggle:hover { background: #e1edfb; }
.account-password-toggle:focus-visible { outline: 2px solid #0877f9; outline-offset: 3px; }
.account-form input[aria-invalid="true"] { border-color: #a12f3b; }
.account-form .account-password-error { color: #a12f3b; font-size: .9rem; margin: 0; }
.account-submit:disabled { cursor: not-allowed; opacity: .55; }
.account-text-button { background: transparent; border: 0; color: #0b5dbb; cursor: pointer; font: inherit; font-size: 1rem; font-weight: 700; min-height: 44px; padding: .4rem 0; text-decoration: underline; text-underline-offset: 3px; }
.account-forgot { justify-self: end; }
.account-back { display: block; margin-top: 1rem; }
.account-text-button:focus-visible { outline: 2px solid #0877f9; outline-offset: 3px; }
.account-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.account-dialog h2 { line-height: 1.35; padding-right: 1rem; }

.account-submit, .account-signout {
  background: #0877f9;
  border: 0;
  border-radius: 13px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 50px;
  padding: .75rem 1rem;
}

.account-signout { background: #fff; border: 1px solid #d9e2ed; color: #b52c3a; width: 100%; }

.account-status {
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.45;
  margin-top: 1rem;
  padding: .8rem 1rem;
}

.account-status:empty { display: none; }
.account-status.success { background: #e9f8f1; color: #16754e; }
.account-status.error { background: #fff0f1; color: #a12f3b; }
.account-status.info { background: #edf5ff; color: #185f9f; }

.account-summary {
  background: linear-gradient(135deg, #edf6ff, #f7fbff);
  border: 1px solid #d5e8ff;
  border-radius: 18px;
  margin: 1.25rem 0;
  padding: 1rem;
}

.account-summary span { color: #65758a; display: block; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.account-summary strong { display: block; margin-top: .35rem; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .account-button b { display: inline; }
  .account-button .account-dot { display: none; }
  .account-button { min-width: auto; padding: .65rem .85rem; }
  .account-dialog-inner { padding: 1.5rem; }
}

.signup-welcome{padding:20px;background:#edf7ff;border-radius:16px;margin-top:16px}.signup-welcome h3{font-size:22px}.signup-welcome p{font-size:16px;line-height:1.8}.signup-welcome a{display:inline-block;margin:8px 12px 0 0;color:#0061b6;font-weight:700}

.account-language { display:flex; justify-content:center; gap:.5rem; margin:0 1.5rem 1rem; }
.account-language button { min-height:44px; padding:.5rem .9rem; border:1px solid #cbd5e1; border-radius:.5rem; background:white; color:#154579; cursor:pointer; font:inherit; }
.account-language button[aria-pressed="true"] { background:#edf7ff; font-weight:700; }
.account-language button:focus-visible { outline:3px solid #0061b6; outline-offset:2px; }
