.sidebar-account {
  margin-top: auto;
  padding-top: 18px;
}

.sidebar-login,
.sidebar-user {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 13px;
  background: rgb(255 255 255 / 5%);
  color: white;
  text-align: left;
}

.sidebar-login {
  cursor: pointer;
}

.sidebar-login:hover {
  border-color: rgb(216 240 111 / 45%);
  background: rgb(216 240 111 / 8%);
}

.account-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--lime);
  color: var(--nav);
  font-size: 11px;
  font-weight: 900;
}

.sidebar-login > span:nth-child(2),
.sidebar-user > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.sidebar-login strong,
.sidebar-user strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-login small,
.sidebar-user small {
  overflow: hidden;
  color: #9eabba;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user > button {
  margin-left: auto;
  padding: 6px;
  border: 0;
  background: transparent;
  color: #b6c0cd;
  font-size: 8px;
  font-weight: 800;
}

.products-access-loading,
.products-auth-gate {
  min-height: 370px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgb(255 254 250 / 82%);
  box-shadow: 0 16px 44px rgb(31 39 51 / 5%);
}

.products-access-loading {
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 12px;
}

.products-auth-gate {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 38px 24px;
  text-align: center;
}

.products-auth-gate[hidden] {
  display: none;
}

.products-auth-gate h2 {
  margin: 5px 0 0;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.05em;
}

.products-auth-gate p {
  max-width: 53ch;
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.auth-gate-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 5px;
  place-items: center;
  border-radius: 18px 18px 18px 6px;
  background: var(--lime);
  color: var(--nav);
  font-size: 12px;
  font-weight: 900;
  transform: rotate(-3deg);
}

.auth-dialog {
  width: min(480px, calc(100% - 30px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 32px 100px rgb(21 32 51 / 32%);
}

.auth-dialog::backdrop {
  background: rgb(21 32 51 / 54%);
  backdrop-filter: blur(4px);
}

.auth-dialog form {
  display: grid;
  gap: 13px;
  padding: 25px;
}

.auth-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.auth-dialog-heading h2 {
  margin: 5px 0 2px;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.auth-dialog-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3f0e9;
}

.auth-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.auth-tabs button[aria-selected="true"] {
  background: white;
  box-shadow: 0 3px 10px rgb(31 39 51 / 8%);
  color: var(--ink);
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: #9ca1a8;
  font-size: 9px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.google-login {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.google-login > span {
  color: #4285f4;
  font-size: 15px;
  font-weight: 900;
}

.google-login[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
}

.google-help,
.database-help {
  margin: -5px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

.database-help {
  padding: 10px;
  border: 1px solid rgb(243 111 69 / 22%);
  border-radius: 10px;
  background: rgb(243 111 69 / 7%);
  color: var(--accent-dark);
}

@media (max-width: 720px) {
  .sidebar-account {
    margin: 0 0 0 auto;
    padding: 0;
  }

  .sidebar-login,
  .sidebar-user {
    width: auto;
    padding: 8px;
  }

  .sidebar-login small,
  .sidebar-user small,
  .sidebar-user > button {
    display: none;
  }
}

@media (max-width: 520px) {
  .auth-dialog form {
    padding: 20px;
  }
}
