/* Match the IoT dashboard's welcoming card and shared CS Cloud controls.
   Overrides are confined to authentication; the conversation keeps its existing layout. */
.signed-out {
  background:
    radial-gradient(
      ellipse at 50% 58%,
      light-dark(#2f83d11f, transparent),
      transparent 58%
    ),
    var(--bg);
}
.signed-out .brand {
  visibility: hidden;
}
.signed-out main {
  padding-top: 12px;
  padding-bottom: 32px;
}
.signed-out footer {
  display: none;
}
.auth-card {
  width: min(100%, 520px);
  margin: auto;
  padding: clamp(26px, 5vw, 40px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 16px 40px light-dark(#123d7014, #0000002e);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.auth-brand > img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.auth-brand strong {
  font-size: 20px;
  letter-spacing: -0.4px;
}
.auth-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.auth-card h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}
.auth-description {
  margin: 12px 0 28px;
  color: var(--muted);
  line-height: 1.6;
}
.auth-access {
  margin: 22px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.auth-notice {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--danger);
}
.auth-sign-in {
  background: light-dark(#fff, #23374d) !important;
  border-color: light-dark(#93c5fdd9, #486581) !important;
  box-shadow: 0 4px 12px light-dark(#123d7010, #0000001f) !important;
}
.auth-sign-in .cs-cloud-branded-login-button__label {
  color: var(--text) !important;
}
.auth-sign-in:hover .cs-cloud-branded-login-button__label {
  color: #fff !important;
}
[data-theme="dark"] .auth-sign-in .cs-cloud-branded-login-button__stripe {
  background: #2d455e;
}
[data-theme="dark"]
  .auth-sign-in
  :is(
    .cs-cloud-branded-login-button__right-glow,
    .cs-cloud-branded-login-button__edge-glow,
    .cs-cloud-branded-login-button__sheen
  ) {
  display: none;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.auth-divider span {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-register {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid light-dark(#7dd3fc, #43536a);
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}
.auth-register:hover {
  background: var(--hover);
  border-color: var(--accent);
}
.auth-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
}
@media (max-width: 480px) {
  .signed-out .topbar {
    height: 68px;
  }
  .auth-card h1 {
    font-size: 28px;
  }
}
