html {
  color-scheme: dark;
  min-height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e6edf3;
  background: #0d1117;
}

a {
  color: #58a6ff;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(47, 129, 247, 0.55);
  outline-offset: 2px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 5vw, 32px);
  background: rgba(13, 17, 23, 0.92);
  border-bottom: 1px solid #30363d;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 14px;
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.15;
}

.nav-action-secondary {
  border: 1px solid #30363d;
  color: #f0f6fc;
  background: #21262d;
}

.nav-action-primary {
  border: 1px solid #2f81f7;
  color: #ffffff;
  background: #2f81f7;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #30363d;
  border-radius: 999px;
  color: #c9d1d9;
  background: #161b22;
  font-size: 13px;
  font-weight: 700;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  color: #f0f6fc;
}

.page {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.auth-shell {
  display: flex;
  justify-content: center;
  width: 100%;
}

.panel,
.auth-panel {
  width: 100%;
  max-width: 420px;
  border: 1px solid #30363d;
  border-radius: 12px;
  background: #161b22;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.panel {
  padding: 24px;
}

.auth-panel {
  padding: 24px 20px;
}

.auth-brand {
  margin: 0 0 6px;
  color: #8b949e;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-panel h1 {
  margin: 0 0 8px;
  color: #f0f6fc;
  font-size: 24px;
  line-height: 1.2;
}

.auth-subtitle {
  margin: 0 0 22px;
  color: #8b949e;
  font-size: 14px;
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label,
.checkbox-label {
  color: #e6edf3;
  font-size: 14px;
  font-weight: 650;
}

.field input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #f0f6fc;
  background: #21262d;
  font: inherit;
}

.field input::placeholder {
  color: #8b949e;
}

.checkbox-label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.35;
  cursor: pointer;
}

.checkbox-label input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #2f81f7;
}

.checkbox-label span {
  display: block;
}

.button-primary,
.button-secondary,
.oauth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.button-primary {
  border: 1px solid #2f81f7;
  color: #ffffff;
  background: #2f81f7;
}

.button-secondary,
.oauth-button {
  border: 1px solid #30363d;
  color: #f0f6fc;
  background: #21262d;
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  color: #8b949e;
  font-size: 14px;
  text-align: center;
}

.oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.form-message,
.validation-summary-errors {
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.validation-summary-errors {
  border: 1px solid rgba(248, 81, 73, 0.35);
  color: #ffa198;
  background: rgba(248, 81, 73, 0.12);
}

.field-validation-error {
  color: #ffa198;
  font-size: 13px;
}

.legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.payment-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.payment-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #30363d;
}

.payment-summary dt {
  color: #8b949e;
  font-size: 14px;
}

.payment-summary dd {
  margin: 0;
  color: #f0f6fc;
  font-weight: 700;
}

.payment-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-hero {
  margin-bottom: 20px;
  padding: clamp(28px, 7vw, 56px);
  border: 1px solid #30363d;
  border-radius: 12px;
  background: #161b22;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.landing-copy {
  max-width: 760px;
}

.landing-copy h1,
.legal-page h1 {
  margin: 0 0 12px;
  color: #f0f6fc;
  font-size: clamp(32px, 8vw, 56px);
  line-height: 1.05;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: #f0f6fc;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 750;
  line-height: 1.25;
}

.landing-copy p,
.info-panel p,
.legal-page li {
  color: #c9d1d9;
  line-height: 1.65;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.info-panel {
  width: 100%;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 22px;
  background: #161b22;
}

.info-panel h2 {
  margin: 0 0 14px;
  color: #f0f6fc;
  font-size: 20px;
  line-height: 1.25;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.details-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.details-list div {
  display: grid;
  gap: 4px;
}

.details-list dt {
  color: #8b949e;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.details-list dd {
  margin: 0;
  color: #f0f6fc;
  overflow-wrap: anywhere;
}

.legal-page {
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(28px, 7vw, 44px);
}

.legal-page h2 {
  margin-top: 24px;
}

.legal-review {
  border: 1px solid rgba(210, 153, 34, 0.35);
  border-radius: 8px;
  padding: 12px;
  color: #f2cc60;
  background: rgba(210, 153, 34, 0.12);
}

.muted {
  color: #8b949e;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.security-note {
  margin: 16px 0 0;
  color: #8b949e;
  font-size: 13px;
  line-height: 1.45;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.package-card {
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 18px;
  background: #161b22;
}

.package-card h2 {
  margin: 0 0 10px;
  color: #f0f6fc;
  font-size: 20px;
}

.package-price {
  color: #f0f6fc;
  font-size: 18px;
  font-weight: 800;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 16px;
  color: #8b949e;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  font-size: 14px;
}

@media (min-width: 640px) {
  .page {
    padding-top: 48px;
  }

  .auth-panel {
    padding: 30px 28px;
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
