.auth-page-shell {
  min-height: 100vh;
  padding: 18px clamp(14px, 3vw, 30px) 30px;
}

.auth-bar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto 18px;
  max-width: 1540px;
  padding: 12px 14px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  box-shadow: var(--app-shadow-soft);
  backdrop-filter: blur(18px);
}

.auth-bar__left,
.auth-bar__right,
.auth-user,
.auth-nav {
  align-items: center;
  display: flex;
}

.auth-bar__left,
.auth-bar__right {
  gap: 12px;
  min-width: 0;
}

.auth-nav {
  flex-wrap: wrap;
  gap: 8px;
}

.auth-badge {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  color: #fffaf0;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  background:
    radial-gradient(circle at 20% 20%, rgba(var(--app-honey-rgb), 0.72), transparent 32%),
    linear-gradient(135deg, var(--app-accent-2), #1f57bf);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(var(--app-accent-rgb), 0.2);
}

.auth-brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.auth-badge__text {
  display: inline-grid;
  gap: 1px;
}

.auth-badge__text strong,
.auth-badge__text small {
  line-height: 1.1;
}

.auth-badge__text small {
  font-size: 10px;
  font-weight: 800;
  opacity: 0.78;
}

.auth-nav-link {
  min-height: 38px;
  padding: 0 13px;
  font-size: 13px;
  background: rgba(232, 240, 255, 0.8);
  border: 1px solid rgba(var(--app-accent-rgb), 0.08);
}

.auth-nav-link:hover {
  background: #ffffff;
  color: var(--app-accent);
}

.auth-user {
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
  min-width: 92px;
  color: var(--app-muted);
  line-height: 1.2;
  text-align: right;
}

.auth-user strong {
  max-width: 150px;
  overflow: hidden;
  color: var(--app-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-user span {
  max-width: 180px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-action {
  min-height: 38px;
  padding: 0 13px;
  font-size: 13px;
}

.auth-action--ghost {
  color: var(--app-honey-ink);
  background: rgba(var(--app-honey-rgb), 0.18);
  border-color: rgba(var(--app-honey-rgb), 0.35);
}

.login-shell {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 28px;
  place-items: center;
}

.login-card {
  position: relative;
  width: min(100%, 470px);
  padding: 34px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 34px;
  box-shadow: var(--app-shadow-card);
  backdrop-filter: blur(22px);
}

.login-card::before {
  position: absolute;
  top: -95px;
  right: -70px;
  width: 220px;
  height: 220px;
  content: "";
  background:
    radial-gradient(circle, rgba(var(--app-honey-rgb), 0.62), transparent 68%),
    radial-gradient(circle at 30% 60%, rgba(var(--app-accent-rgb), 0.18), transparent 55%);
  border-radius: 50%;
}

.login-card > * {
  position: relative;
}

.login-card h1 {
  max-width: 340px;
  margin: 0;
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: 0;
  line-height: 1.05;
}

.login-card p {
  margin: 0;
}

.login-card > p:not(.eyebrow) {
  max-width: 360px;
  margin-top: 14px;
  color: var(--app-muted);
  line-height: 1.75;
}

.login-form {
  display: grid;
  gap: 15px;
  margin-top: 28px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 800;
}

.login-button {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  font-size: 15px;
}

.login-status {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--app-warning);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .auth-bar {
    align-items: stretch;
    border-radius: 26px;
    flex-direction: column;
  }

  .auth-bar__left,
  .auth-bar__right {
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .auth-page-shell,
  .login-shell {
    padding: 14px;
  }

  .auth-bar__left,
  .auth-bar__right {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-nav-link,
  .auth-action {
    width: 100%;
  }

  .auth-user {
    align-items: flex-start;
    text-align: left;
  }

  .login-card {
    padding: 26px;
    border-radius: 28px;
  }
}

/* 2026 brand navigation refresh */
.auth-page-shell {
  padding: 0 clamp(14px, 2.4vw, 28px) 28px;
}

.auth-bar {
  position: relative;
  top: auto;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 2vw, 28px);
  align-items: center;
  width: min(100%, 1680px);
  max-width: none;
  min-height: 82px;
  margin: 0 auto 16px;
  padding: 0 clamp(16px, 2.4vw, 34px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(215, 229, 248, 0.9);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 18px 46px rgba(32, 78, 142, 0.08);
  backdrop-filter: blur(20px);
}

.auth-bar__brand {
  min-width: 210px;
}

.auth-badge {
  min-height: 58px;
  padding: 0;
  color: #0f1f3f;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
}

.auth-brand-logo {
  width: 42px;
  height: 42px;
}

.auth-badge__text strong {
  font-size: 25px;
  font-weight: 850;
  letter-spacing: 0;
}

.auth-badge__text small {
  color: var(--app-muted);
}

.auth-nav {
  justify-content: center;
  gap: clamp(8px, 1.2vw, 18px);
  min-width: 0;
}

.auth-nav-link {
  position: relative;
  min-height: 82px;
  padding: 0 6px;
  color: #15243e;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.auth-nav-link::after {
  position: absolute;
  right: 4px;
  bottom: 0;
  left: 4px;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #1f6fff, #2f88ff);
  border-radius: 999px 999px 0 0;
  opacity: 0;
  transform: scaleX(0.5);
}

.auth-nav-link:hover,
.auth-nav-link.active {
  color: #0964f4;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.auth-nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.auth-bar__right {
  justify-content: flex-end;
  gap: 10px;
  min-width: 220px;
}

.auth-bell,
.auth-avatar {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  place-items: center;
}

.auth-bell {
  position: relative;
  color: #183052;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(214, 226, 244, 0.92);
}

.auth-bell::before {
  width: 16px;
  height: 18px;
  content: "";
  border: 2px solid currentColor;
  border-bottom-width: 3px;
  border-radius: 9px 9px 5px 5px;
}

.auth-bell span {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  background: #f0182d;
  border-radius: 999px;
}

.auth-avatar {
  color: #1267f2;
  font-size: 18px;
  font-weight: 900;
  background: #e8f1ff;
}

.auth-user {
  min-width: 74px;
}

.auth-user strong {
  color: #13213b;
  font-size: 14px;
}

.auth-user span {
  color: #5d6c82;
  font-size: 12px;
}

.auth-action {
  min-height: 34px;
  padding: 0 10px;
  color: #2567d8;
  font-size: 12px;
  background: rgba(235, 243, 255, 0.72);
  border: 1px solid rgba(37, 103, 216, 0.12);
}

.auth-action--ghost {
  color: #8b6510;
  background: rgba(255, 246, 221, 0.72);
  border-color: rgba(244, 190, 58, 0.28);
}

/* Quieter account area: auth.js no longer renders these, but keep stale markup inert. */
.auth-bell,
.auth-avatar {
  display: none;
}

@media (max-width: 1260px) {
  .auth-bar {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding-block: 10px;
  }

  .auth-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 2px;
  }

  .auth-nav-link {
    min-height: 38px;
  }
}

@media (max-width: 760px) {
  .auth-page-shell {
    padding-inline: 10px;
  }

  .auth-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    border-radius: 0 0 18px 18px;
  }

  .auth-bar__brand,
  .auth-bar__right {
    min-width: 0;
    width: 100%;
  }

  .auth-bar__right {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .auth-badge__text strong {
    font-size: 21px;
  }
}
