.remote-signin-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.remote-signin-page .site-header {
  flex: 0 0 auto;
}

.remote-utility-header {
  border-bottom: 1px solid var(--border);
}

.remote-utility-navbar {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.remote-utility-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.remote-signin-main {
  flex: 1 0 auto;
  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(var(--accent-rgb), 0.12),
      transparent 34%
    ),
    var(--background);
}

.remote-signin-layout {
  min-height: 0;
  padding-top: 34px;
  padding-bottom: 42px;
}

.remote-signin-card {
  width: min(100%, 520px);
}

.remote-signin-card-compact {
  padding-top: 30px;
  padding-bottom: 30px;
}

.remote-signin-heading {
  display: block;
}

.remote-signin-heading .eyebrow {
  margin-bottom: 6px;
}

.remote-signin-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
}

.remote-signin-heading .account-intro {
  margin: 0;
}

.remote-account-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin-top: 22px;
  padding: 13px 14px;
  background: rgba(56, 180, 104, 0.08);
  border: 1px solid rgba(89, 222, 138, 0.2);
  border-radius: 11px;
}

.remote-account-summary[hidden],
#remote-credential-fields[hidden] {
  display: none;
}

.remote-account-summary strong,
.remote-account-summary span {
  display: block;
}

.remote-account-summary strong {
  color: #d8ffe5;
  font-size: 0.83rem;
}

.remote-account-summary span:last-child {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.remote-account-status {
  width: 10px;
  height: 10px;
  background: #59de8a;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(89, 222, 138, 0.1);
}

.remote-device-code {
  height: 62px !important;
  padding: 0 18px !important;
  text-align: center;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.85rem;
  font-weight: 850;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}

.remote-device-code::placeholder {
  color: rgba(157, 217, 245, 0.18);
}

.remote-field-help {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.remote-signin-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 25px 0 3px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.remote-signin-divider::before,
.remote-signin-divider::after {
  height: 1px;
  background: var(--border);
  content: "";
}

.remote-signin-complete-button,
.remote-signin-complete-button:disabled {
  color: #d8ffe5;
  background: rgba(56, 180, 104, 0.2);
  border: 1px solid rgba(89, 222, 138, 0.3) !important;
  cursor: default;
  opacity: 1;
}

.remote-signin-site-footer {
  flex: 0 0 auto;
  padding: 22px 20px 28px;
  background: rgba(3, 11, 18, 0.76);
  border-top: 1px solid var(--border);
}

.remote-signin-site-footer-compact {
  background: transparent;
  border-top: 0;
}

.remote-signin-footer-content {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  gap: 8px;
}

.remote-signin-footer-content p {
  margin: 4px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.remote-signin-footer-content .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.remote-signin-footer-content .footer-links a:hover {
  color: var(--text);
}

@media (max-width: 700px) {
  .remote-utility-navbar {
    gap: 14px;
  }

  .remote-utility-actions {
    gap: 10px;
  }
}

@media (max-width: 500px) {
  .remote-signin-layout {
    padding: 20px 12px 28px;
  }

  .remote-signin-card {
    padding: 24px 20px;
  }

  .remote-device-code {
    font-size: 1.6rem;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
  }

  .remote-signin-site-footer {
    padding: 18px 16px 24px;
  }

  .remote-utility-navbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .remote-utility-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
