#app-shell[hidden],
#auth-view[hidden] {
  display: none !important;
}

#auth-view.auth-page {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 12% 12%, rgb(199 210 254 / 55%), transparent 34%),
    radial-gradient(ellipse at 88% 82%, rgb(186 230 253 / 50%), transparent 32%),
    #f4f6fb !important;
  color: #172033 !important;
}

#auth-view .auth-glow {
  position: absolute;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}

#auth-view .auth-glow-one {
  top: -12rem;
  left: -8rem;
  background: #818cf8;
}

#auth-view .auth-glow-two {
  right: -9rem;
  bottom: -13rem;
  background: #7dd3fc;
}

#auth-view .auth-frame {
  border-color: #e4e8f0;
  background: #fff !important;
  box-shadow: 0 32px 90px rgb(23 32 51 / 14%);
}

#auth-view .auth-story {
  background:
    radial-gradient(ellipse at 80% 18%, rgb(99 102 241 / 34%), transparent 34%),
    linear-gradient(145deg, #10182d 4%, #20245a 55%, #3730a3 100%);
}

#auth-view .auth-story-orb {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 9999px;
  pointer-events: none;
}

#auth-view .auth-story-orb-one {
  top: 11%;
  right: -13rem;
  width: 30rem;
  height: 30rem;
}

#auth-view .auth-story-orb-two {
  right: -7rem;
  bottom: -20rem;
  width: 34rem;
  height: 34rem;
}

#auth-view .auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  text-decoration: none;
}

#auth-view .auth-brand-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 0.85rem;
  background: #4f46e5;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgb(79 70 229 / 28%);
}

#auth-view .auth-brand-word {
  color: #182033;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.06em;
}

#auth-view .auth-brand-word span {
  color: #4f46e5;
}

#auth-view .auth-brand-light .auth-brand-word {
  color: #fff;
}

#auth-view .auth-eyebrow {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

#auth-view .auth-eyebrow-light {
  color: #c7d2fe;
}

#auth-view .auth-eyebrow-form {
  color: #4f46e5;
}

#auth-view .auth-headline {
  max-width: 34rem;
  color: #fff;
  font-size: clamp(2.5rem, 4vw, 3.7rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

#auth-view .auth-headline span {
  color: #a5b4fc;
}

#auth-view .auth-story-copy {
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.75;
}

#auth-view .auth-preview {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 1.2rem;
  background: rgb(255 255 255 / 9%);
  box-shadow: 0 22px 55px rgb(8 12 35 / 25%);
  backdrop-filter: blur(16px);
}

#auth-view .auth-preview-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

#auth-view .auth-preview-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 35%);
}

#auth-view .auth-preview-label {
  margin-left: auto;
  color: #c7d2fe;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

#auth-view .auth-preview-content {
  padding: 1.1rem;
}

#auth-view .auth-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

#auth-view .auth-preview-kicker {
  color: #c7d2fe;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

#auth-view .auth-preview-title {
  margin-top: 0.25rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 650;
}

#auth-view .auth-preview-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 0.65rem;
  color: #c7d2fe;
}

#auth-view .auth-preview-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

#auth-view .auth-preview-logo {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.65rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 750;
}

#auth-view .auth-preview-logo-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

#auth-view .auth-preview-role {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 0.12rem;
}

#auth-view .auth-preview-role strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#auth-view .auth-preview-role small {
  color: #cbd5e1;
  font-size: 0.62rem;
}

#auth-view .auth-preview-status {
  border: 1px solid rgb(110 231 183 / 20%);
  border-radius: 9999px;
  background: rgb(16 185 129 / 13%);
  padding: 0.25rem 0.55rem;
  color: #a7f3d0;
  font-size: 0.58rem;
  font-weight: 650;
}

#auth-view .auth-preview-status-muted {
  border-color: rgb(199 210 254 / 20%);
  background: rgb(129 140 248 / 12%);
  color: #c7d2fe;
}

#auth-view .auth-story-footer {
  color: #c7d2fe;
  font-size: 0.75rem;
}

#auth-view .auth-form-panel {
  background: #fff !important;
}

#auth-view .auth-title {
  color: #172033 !important;
  font-size: clamp(1.8rem, 3vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

#auth-view .auth-description {
  color: #64748b !important;
  font-size: 0.92rem;
  line-height: 1.6;
}

#auth-view .auth-field {
  display: grid;
  gap: 0.5rem;
}

#auth-view .auth-field.hidden {
  display: none;
}

#auth-view .auth-label {
  color: #334155 !important;
  font-size: 0.82rem;
  font-weight: 650;
}

#auth-view .auth-input {
  width: 100%;
  border: 1px solid #dbe2ec !important;
  border-radius: 0.8rem;
  background: #f8fafc !important;
  padding: 0.82rem 0.95rem;
  color: #172033 !important;
  color-scheme: light;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

#auth-view .auth-input::placeholder {
  color: #94a3b8 !important;
}

#auth-view .auth-input:focus {
  border-color: #818cf8 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgb(99 102 241 / 12%);
}

#auth-view .auth-error {
  border: 1px solid #fecdd3;
  border-radius: 0.8rem;
  background: #fff1f2 !important;
  padding: 0.75rem 0.9rem;
  color: #be123c !important;
  font-size: 0.82rem;
  line-height: 1.5;
}

#auth-view .auth-button {
  width: 100%;
  border: 0;
  border-radius: 0.8rem;
  background: linear-gradient(110deg, #4f46e5, #4338ca);
  padding: 0.9rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgb(79 70 229 / 22%);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

#auth-view .auth-button:hover {
  filter: brightness(1.06);
  box-shadow: 0 11px 22px rgb(79 70 229 / 28%);
  transform: translateY(-1px);
}

#auth-view .auth-button:focus-visible {
  outline: 3px solid #c7d2fe;
  outline-offset: 3px;
}

#auth-view .auth-button:disabled {
  cursor: wait;
  filter: saturate(0.65);
  opacity: 0.75;
  transform: none;
}

#auth-view .auth-note {
  border: 1px solid #e0e7ff;
  border-radius: 0.85rem;
  background: #f5f6ff !important;
  padding: 0.8rem 0.9rem;
  color: #475569 !important;
  font-size: 0.76rem;
  line-height: 1.6;
}

#auth-view .auth-privacy,
#auth-view .auth-copyright {
  color: #64748b !important;
  font-size: 0.72rem;
  line-height: 1.5;
}

#auth-view .auth-copyright {
  color: #94a3b8 !important;
  font-size: 0.68rem;
}

@media (max-width: 639px) {
  #auth-view.auth-page {
    align-items: stretch;
    padding: 0;
  }

  #auth-view .auth-frame {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #auth-view .auth-form-panel {
    align-items: flex-start;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  #auth-view .auth-frame {
    max-width: 34rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #auth-view .auth-input,
  #auth-view .auth-button {
    transition: none;
  }
}
