.is-auth-checking .skel-only {
  display: flex !important;
}

.is-auth-checking .real-only,
.is-auth-checking .logo-ready-only {
  display: none !important;
}

.login-page {
  min-width: 320px;
}

.login-shell {
  min-height: 100vh;
  min-height: 100svh;
}

.login-header {
  min-height: 56px;
  margin-top: clamp(12px,2.5vh,22px);
  flex-shrink: 0;
}

.login-brand-short {
  display: none;
}

.login-brand .brand-copy,
.login-account-wrap {
  animation: stepIn 260ms ease both;
}

.login-account-skeleton {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  animation-delay: 120ms;
}

.login-account-wrap {
  position: relative;
  flex-shrink: 0;
}

.login-account-button {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  color: var(--muted);
  cursor: pointer;
  transition: background 140ms ease;
}

.login-account-button:hover {
  background: rgba(255,255,255,.1);
}

.login-account-button:focus-visible,
.login-menu-item:focus-visible,
.google-sign-in:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.login-account-button svg,
.login-menu-item svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-account-menu {
  position: absolute;
  z-index: 60;
  top: 52px;
  right: 0;
  min-width: 230px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(18,28,22,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 30px 60px -20px rgba(0,0,0,.8);
  text-align: left;
  animation: stepIn 160ms ease both;
}

.login-menu-label {
  display: block;
  padding: 9px 12px 7px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.login-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: 500 13.5px "Instrument Sans", sans-serif;
  text-align: left;
  text-decoration: none;
  transition: background 120ms ease;
}

.login-menu-item:hover {
  background: rgba(255,255,255,.07);
  color: var(--primary);
}

.login-menu-item svg {
  flex: 0 0 auto;
  color: var(--accent);
}

.login-menu-footer {
  display: block;
  margin: 5px 12px 8px;
  padding-top: 8px;
  color: var(--muted);
  box-shadow: 0 -1px 0 rgba(255,255,255,.09);
  font-size: 11px;
}

.login-main {
  min-height: 0;
  padding: clamp(14px,3vh,44px) clamp(16px,5vw,64px) clamp(16px,4vh,84px);
}

.login-loading-card,
.login-card {
  width: min(480px,100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(22px,5vw,42px);
  border-radius: 24px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), 0 50px 110px -50px rgba(0,0,0,.85);
}

.login-card {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.login-loading-card {
  box-sizing: border-box;
}

.login-loading-card > span {
  display: block;
}

.login-skeleton-logo {
  width: 180px;
  height: 42px;
  border-radius: 999px;
}

.login-skeleton-heading {
  width: min(300px,80%);
  height: 26px;
  margin-top: 22px;
  border-radius: 8px;
  animation-delay: 120ms;
}

.login-skeleton-subline {
  width: min(230px,64%);
  height: 11px;
  margin-top: 16px;
  background: rgba(255,255,255,.07);
  animation-delay: 240ms;
}

.login-skeleton-button {
  width: 100%;
  height: 50px;
  margin-top: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  animation-delay: 360ms;
}

.login-skeleton-support {
  width: min(250px,70%);
  height: 10px;
  margin-top: 40px;
  background: rgba(255,255,255,.06);
  animation-delay: 480ms;
}

.login-screen {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: stepIn 320ms ease both;
}

.login-horizon {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-card-logo {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 41px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(191,232,192,.33));
}

.login-horizon-line {
  width: 200px;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg,transparent,rgba(191,232,192,.85),transparent);
  box-shadow: 0 0 14px 1px rgba(191,232,192,.45);
}

.login-horizon-fade {
  width: 130px;
  height: 22px;
  margin-top: -1px;
  background: radial-gradient(60% 100% at 50% 0%,rgba(146,196,146,.28),transparent 75%);
}

.login-card h1 {
  max-width: none;
  margin: 22px 0 0;
  color: var(--primary);
  font: 500 clamp(24px,4vw,32px)/1.08 "Space Grotesk", sans-serif;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.login-card h1 em {
  color: var(--accent);
  font-style: normal;
}

.login-subline {
  margin: 14px 0 28px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.55;
}

.login-denied-alert {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,120,90,.08);
  box-shadow: inset 0 0 0 1px rgba(255,180,160,.22);
  text-align: left;
}

.login-denied-alert > svg {
  flex: 0 0 auto;
  margin-top: 2px;
  fill: none;
  stroke: var(--danger);
  stroke-width: 2;
  stroke-linecap: round;
}

.login-denied-alert > div {
  min-width: 0;
}

.login-denied-alert strong {
  display: block;
  color: var(--danger);
  font-size: 13.5px;
  font-weight: 600;
}

.login-denied-alert p {
  margin: 3px 0 0;
  color: #c9a99f;
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.login-denied-alert a {
  color: var(--danger);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.google-sign-in {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg,#fff 0%,#f2f8ef 45%,#e0ebdc 100%);
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -3px 6px rgba(16,36,15,.12), 0 12px 26px -10px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.35);
  color: #10240f;
  cursor: pointer;
  font: 600 15px "Instrument Sans", sans-serif;
  letter-spacing: .01em;
  transition: filter 150ms ease, transform 90ms ease, box-shadow 90ms ease;
}

.google-sign-in svg {
  flex: 0 0 auto;
}

.google-sign-in:hover {
  filter: brightness(1.03);
}

.google-sign-in:active {
  transform: translateY(1px);
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -2px 4px rgba(16,36,15,.14), 0 8px 18px -10px rgba(0,0,0,.55);
}

.login-support {
  width: 100%;
  margin-top: 20px;
  padding-top: 20px;
  box-shadow: 0 -1px 0 rgba(255,255,255,.1);
}

.login-support p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.login-support a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 559px) {
  .login-brand-wide {
    display: none;
  }

  .login-brand-short {
    display: inline;
  }
}

@media (max-width: 559px) and (max-height: 640px) {
  .login-header {
    min-height: 52px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 16px;
  }

  .login-main {
    padding: 8px 16px 10px;
  }

  .login-loading-card,
  .login-card {
    padding: 14px 18px;
    border-radius: 20px;
  }

  .login-card-logo {
    width: 32px;
    height: 35px;
  }

  .login-horizon-line {
    margin-top: 7px;
  }

  .login-horizon-fade {
    height: 14px;
  }

  .login-card h1 {
    margin-top: 10px;
    font-size: 22px;
  }

  .login-subline {
    margin: 8px 0 12px;
    font-size: 13.5px;
    line-height: 1.4;
  }

  .login-denied-alert {
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .login-denied-alert strong {
    font-size: 12.5px;
  }

  .login-denied-alert p {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .google-sign-in {
    padding: 10px 18px;
    font-size: 14px;
  }

  .login-support {
    margin-top: 10px;
    padding-top: 10px;
  }

  .login-support p {
    font-size: 11px;
    line-height: 1.4;
  }
}
