:root {
  --text: #6b6375;
  --text-h: #08060d;
  --bg: #fff;
  --border: #e5e4e7;
  --code-bg: #f4f3ec;
  --accent: #aa3bff;
  --accent-bg: rgba(170, 59, 255, 0.1);
  --accent-border: rgba(170, 59, 255, 0.5);
  --social-bg: rgba(244, 243, 236, 0.5);
  --shadow:
    rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;

  --sans: system-ui, 'Segoe UI', Roboto, sans-serif;
  --heading: system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, Consolas, monospace;

  font: 18px/145% var(--sans);
  letter-spacing: 0.18px;
  color-scheme: light dark;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  @media (max-width: 1024px) {
    font-size: 16px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #9ca3af;
    --text-h: #f3f4f6;
    --bg: #16171d;
    --border: #2e303a;
    --code-bg: #1f2028;
    --accent: #c084fc;
    --accent-bg: rgba(192, 132, 252, 0.15);
    --accent-border: rgba(192, 132, 252, 0.5);
    --social-bg: rgba(47, 48, 58, 0.5);
    --shadow:
      rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
  }

  #social .button-icon {
    filter: invert(1) brightness(2);
  }
}

#root {
  width: 1126px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  border-inline: 1px solid var(--border);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body {
  margin: 0;
}

h1,
h2 {
  font-family: var(--heading);
  font-weight: 500;
  color: var(--text-h);
}

h1 {
  font-size: 56px;
  letter-spacing: -1.68px;
  margin: 32px 0;
  @media (max-width: 1024px) {
    font-size: 36px;
    margin: 20px 0;
  }
}
h2 {
  font-size: 24px;
  line-height: 118%;
  letter-spacing: -0.24px;
  margin: 0 0 8px;
  @media (max-width: 1024px) {
    font-size: 20px;
  }
}
p {
  margin: 0;
}

code,
.counter {
  font-family: var(--mono);
  display: inline-flex;
  border-radius: 4px;
  color: var(--text-h);
}

code {
  font-size: 15px;
  line-height: 135%;
  padding: 4px 8px;
  background: var(--code-bg);
}
:root {
  color-scheme: light;
}

html,
body,
#root {
  margin: 0;
  min-height: 100%;
  width: 100%;
  background: #f5f6f8;
  color: #111;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #f5f6f8;
}

.card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  color: #111;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.successCard {
  text-align: center;
}

.logoWrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.logo {
  height: 46px;
  object-fit: contain;
}

h1 {
  margin: 0 0 16px 0;
  font-size: 36px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  color: #000;
}

.lead {
  margin: 0 0 24px 0;
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
  color: #111;
}

.fieldGroup {
  margin-bottom: 18px;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.input {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: 2px solid #cfd6de;
  border-radius: 12px;
  font-size: 20px;
  line-height: 1.2;
  background: #fff;
  color: #111;
}

.input:focus {
  outline: none;
  border-color: #5d718f;
  box-shadow: 0 0 0 4px rgba(93, 113, 143, 0.16);
}

.codeInput {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.button {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 14px;
}

.button.primary {
  background: #111;
  color: #fff;
}

.button.secondary {
  background: #e9edf2;
  color: #111;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.divider {
  text-align: center;
  margin: 8px 0 14px 0;
  color: #666;
  font-size: 16px;
}

.supportText {
  margin: 14px 0 0 0;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  color: #222;
}

.error {
  margin-top: 16px;
  max-width: 520px;
  color: #b00020;
  font-size: 16px;
  text-align: center;
}

.successCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 32px 24px;
}

.successContent {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.successBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eefbf3;
  color: #166534;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.successTitle {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
}

.successLead,
.successSupportText,
.successMeta {
  margin: 0;
  max-width: 460px;
}

.successAccountBox {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}

.successAccountLabel {
  font-size: 13px;
  color: #6b7280;
}

.successAccountEmail {
  font-size: 16px;
  line-height: 1.3;
  word-break: break-word;
}

.successActions {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.successButton {
  width: 100%;
}

.successMeta {
  font-size: 13px;
  color: #6b7280;
  word-break: break-word;
}

.openCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 32px 24px;
}

.openContent {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.openBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eefbf3;
  color: #166534;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.openTitle {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
}

.openLead,
.openSupportText,
.openMeta {
  margin: 0;
  max-width: 460px;
}

.openActions {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.openButton {
  width: 100%;
}

.openInfoBox {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}

.openMeta {
  font-size: 13px;
  color: #6b7280;
}

.openLink {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .openCard {
    padding: 24px 18px;
    gap: 18px;
  }

  .openTitle {
    font-size: 28px;
  }
}