.app-shell.auth-mode .sidebar,
.app-shell.auth-mode .topbar,
.app-shell.auth-mode .demo-notice,
.app-shell.auth-mode .api-status,
.app-shell.auth-mode .page-footer {
  display: none;
}

.app-shell.auth-mode .main-area {
  min-height: 100vh;
  margin-left: 0;
}

.app-shell.auth-mode .page-content {
  display: grid;
  min-height: 100vh;
  align-content: center;
  justify-items: center;
  padding: 48px 20px;
  background:
    radial-gradient(ellipse at 10% 12%, rgba(107, 143, 240, .13), transparent 34%),
    radial-gradient(ellipse at 92% 84%, rgba(40, 168, 121, .10), transparent 30%),
    #f5f7fb;
}

.app-shell.auth-mode #viewRoot {
  width: min(100%, 440px);
}

.auth-screen {
  width: 100%;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-bottom: 22px;
}

.auth-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #6b8ff0, var(--blue));
  box-shadow: 0 7px 16px rgba(71, 118, 230, .24);
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.auth-brand > span:last-child {
  display: grid;
  gap: 3px;
}

.auth-brand strong {
  color: #273248;
  font-size: 18px;
  letter-spacing: -.4px;
}

.auth-brand small {
  color: #99a2b1;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1px;
}

.auth-card {
  width: 100%;
  margin: 0;
  padding: clamp(24px, 6vw, 36px);
  border: 1px solid rgba(226, 232, 241, .92);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 60px rgba(37, 51, 77, .10);
}

.auth-card h1 {
  margin-bottom: 8px;
  color: #202b40;
  font-size: clamp(25px, 6vw, 30px);
  letter-spacing: -.9px;
}

.auth-eyebrow {
  margin-bottom: 9px;
  color: #6480d4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.15px;
}

.auth-description {
  margin: 0 0 25px;
  color: #788397;
  font-size: 13px;
  line-height: 1.6;
}

.auth-card .form-grid {
  gap: 17px;
}

.auth-card .form-field {
  gap: 7px;
}

.auth-card .form-field label {
  color: #4e5b72;
  font-size: 12px;
}

.auth-card .form-field input {
  min-height: 46px;
  padding: 10px 12px;
  border-color: #e1e7f0;
  border-radius: 9px;
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}

.auth-card .form-field input:focus {
  border-color: #819be8;
  box-shadow: 0 0 0 3px rgba(71, 118, 230, .11);
  outline: 0;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 3px;
  border-radius: 9px;
  font-size: 13px;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.auth-card .auth-links {
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid #eef1f6;
}

.auth-card .text-link {
  min-height: 28px;
  color: #5876ce;
  font-size: 11px;
}

.auth-card .text-link:hover {
  color: #365fd0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-card .api-note {
  margin: -4px 0 0;
  font-size: 11px;
  line-height: 1.55;
}

.auth-key-panel {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #dce8df;
  border-radius: 12px;
  background: #f5fbf7;
}

.auth-key-panel h2 {
  margin: 0;
  color: #2e694d;
  font-size: 15px;
}

.auth-key-panel p {
  margin: 0;
  color: #61796b;
  font-size: 12px;
  line-height: 1.55;
}

.auth-key-value {
  overflow-wrap: anywhere;
  padding: 11px 12px;
  border: 1px solid #dfebe2;
  border-radius: 8px;
  background: #fff;
  color: #244b36;
  user-select: all;
}

.auth-key-value code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
}

.auth-key-panel .button {
  min-height: 40px;
  font-size: 12px;
}

@media (max-width: 480px) {
  .app-shell.auth-mode .page-content {
    padding: 24px 14px;
  }

  .auth-brand {
    margin-bottom: 16px;
  }

  .auth-card {
    border-radius: 14px;
  }

  .auth-card .auth-links {
    justify-content: center;
  }
}