.accountWrap {
  position: relative;
}

#account-btn {
  position: relative;
}

.accountDot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 2px #fff;
}

.accountMenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 240px;
  padding: 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(10, 27, 78, 0.1);
  background: #fff;
  box-shadow: 0 16px 40px rgba(10, 27, 78, 0.14);
}

.accountMenu[hidden] {
  display: none !important;
}

.accountMenuHead {
  padding: 0.45rem 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(10, 27, 78, 0.08);
  margin-bottom: 0.35rem;
}

.accountMenuHead strong {
  display: block;
  color: var(--brand-blue);
  font-size: 0.95rem;
}

.accountMenuHead span {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  word-break: break-all;
}

.accountMenuItem {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.65rem 0.55rem;
  border-radius: 10px;
  color: var(--brand-blue);
  font-weight: 650;
  font-size: 0.9rem;
}

.accountMenuItem:hover {
  background: #f0f3f8;
}

body.authOpen {
  overflow: hidden;
}

.authOverlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(6, 12, 28, 0.55);
  backdrop-filter: blur(4px);
}

.authOverlay[hidden] {
  display: none !important;
}

.authModal {
  position: relative;
  width: min(100%, 420px);
  max-height: min(92vh, 720px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  padding: 1.35rem 1.35rem 1.2rem;
  box-shadow: 0 24px 60px rgba(10, 27, 78, 0.28);
}

.authClose {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--brand-blue);
  font-size: 1.4rem;
  line-height: 1;
}

.authTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: #f1f5f9;
  margin-bottom: 1rem;
}

.authTab {
  border: 0;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
}

.authTab.active {
  background: #fff;
  color: var(--brand-blue);
  box-shadow: 0 1px 3px rgba(10, 27, 78, 0.08);
}

.authModal h2 {
  margin: 0;
  color: var(--brand-blue);
  font-size: 1.45rem;
}

.authSubtitle {
  margin: 0.35rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.authAlert {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.4;
}

.authAlertError {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.authAlertSuccess {
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.authForm {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.authForm label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.authForm label span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.authForm input {
  border: 1px solid rgba(10, 27, 78, 0.14);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  color: var(--brand-blue);
  background: #fff;
  font: inherit;
}

.authForm input:focus {
  outline: 2px solid rgba(10, 27, 78, 0.12);
  border-color: var(--brand-blue);
}

.authSubmit {
  width: 100%;
  margin-top: 0.25rem;
  justify-content: center;
}

.authSwitch {
  margin: 0.25rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.authLink {
  border: 0;
  background: transparent;
  color: var(--brand-blue);
  font-weight: 750;
  padding: 0;
  margin-left: 0.2rem;
}

.authLink:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 120;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 650;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(10, 27, 78, 0.25);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

a.accountMenuItem {
  display: block;
  text-decoration: none;
  box-sizing: border-box;
}

.authPage {
  --brand-blue: #0a1b4e;
  --dark-blue: #061536;
  --text-muted: #6b7280;
  --accent-gradient: linear-gradient(90deg, #ff512f, #f09819);
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(255, 140, 66, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 10%, rgba(10, 27, 78, 0.1), transparent 50%),
    linear-gradient(180deg, #f5f7fb 0%, #eef2f8 100%);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--brand-blue);
  -webkit-font-smoothing: antialiased;
}

.authPageShell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  padding: 1.75rem 1rem 2.25rem;
}

.authBrand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.authBrand .siteLogo {
  height: 52px;
  max-width: min(220px, 70vw);
}

.authCard {
  width: min(100%, 420px);
  border-radius: 20px;
  background: #fff;
  padding: 1.65rem 1.5rem 1.4rem;
  border: 1px solid rgba(10, 27, 78, 0.08);
  box-shadow: 0 18px 48px rgba(10, 27, 78, 0.1);
}

.authCardHead {
  margin-bottom: 1.15rem;
}

.authCard h1 {
  margin: 0;
  color: var(--brand-blue);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.authPage .authSubtitle {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 500;
}

.authPage .authForm {
  gap: 0.85rem;
}

.authPage .authForm input {
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.authPage .authSubmit {
  margin-top: 0.35rem;
  min-height: 48px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
}

.authCardFooter {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(10, 27, 78, 0.08);
}

.authSwitchRow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  text-align: center;
}

.authSwitchLabel {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.authPage .authLink {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.authPage .authLink:hover {
  border-bottom-color: var(--brand-blue);
  text-decoration: none;
}

.authBackRow {
  display: flex;
  justify-content: center;
}

.authBackLink {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.authBackLink:hover {
  color: var(--brand-blue);
}

.authPage .authOverlay,
.authPage .authModal {
  display: none;
}
