@font-face {
  font-family: TwitterChirp;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("https://abs.twimg.com/responsive-web/client-web/Chirp-Regular.80fda84a.woff2")
    format("woff2");
}

@font-face {
  font-family: TwitterChirp;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("https://abs.twimg.com/responsive-web/client-web/Chirp-Bold.e57c39e5.woff2")
    format("woff2");
}

@font-face {
  font-family: TwitterChirp;
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("https://abs.twimg.com/responsive-web/client-web/Chirp-Heavy.f44ae4ea.woff2")
    format("woff2");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family:
    TwitterChirp,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

body {
  font-family:
    TwitterChirp,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background: #000;
  color: #e7e9ea;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.page-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: center;
  width: 100%;
  min-height: calc(100vh - 52px);
  padding: 32px 48px;
}

.landing-left {
  width: 100%;
  max-width: 500px;
  justify-self: end;
}

.landing-heading {
  font-size: 64px;
  line-height: 70px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
}

.landing-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-stage {
  width: min(100%, 600px);
  position: relative;
  pointer-events: none;
  user-select: none;
}

.hero-logo-outline {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.hero-logo-glow {
  opacity: 0.95;
}

.landing-form {
  display: flex;
  flex-direction: column;
}

.page-shell-dimmed .landing-left,
.page-shell-dimmed .landing-right {
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.flow-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 72px;
  z-index: 10;
}

.flow-modal {
  width: 100%;
  max-width: 600px;
  min-height: 600px;
  background: #16181c;
  border-radius: 16px;
  padding: 0;
  text-align: left;
  box-shadow:
    rgba(255, 255, 255, 0.08) 0 0 1px inset,
    rgba(0, 0, 0, 0.65) 0 8px 32px;
  display: flex;
  flex-direction: column;
  color: #e7e9ea;
}

.flow-modal-phone {
  min-height: 600px;
}

.flow-modal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 80px 36px;
  min-height: 0;
  overflow: visible;
}

.modal-topbar {
  width: 100%;
  display: flex;
  height: 100px;
  padding: 0 10px;
  margin-bottom: 0;
  position: relative;
  flex-shrink: 0;
}

.btn-back-spacer {
  width: 34px;
  height: 34px;
}

.btn-back {
  margin-top: 10px;
  width: 27px;
  height: 27px;
  border: none;
  border-radius: 9999px;
  background: #000;
  color: #e7e9ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-back:hover {
  background: rgba(231, 233, 234, 0.1);
}

.btn-back svg {
  width: 24px;
  height: 24px;
}

.modal-logo-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 40px;
}

.modal-logo {
  width: 45px;
  height: 45px;
  fill: #e7e9ea;
}

.flow-title {
  font-size: 31px;
  line-height: 36px;
  font-weight: 700;
  margin: 0 0 32px;
  padding: 0;
  text-align: left;
}

.flow-modal-lower {
  margin-top: auto;
  width: 100%;
  flex-shrink: 0;
}

.flow-modal-lower .flow-note {
  margin: 0 0 12px;
}

.flow-modal-lower .privacy-options {
  margin: 0 0 32px;
}

.flow-modal-lower .phone-continue {
  margin-top: 0;
}

.flow-subtitle {
  font-size: 15px;
  line-height: 20px;
  color: #71767b;
  margin: -12px 0 24px;
}

.flow-note {
  font-size: 15px;
  line-height: 20px;
  color: #71767b;
  margin: 12px 0 16px;
}

.btn-social {
  width: 100%;
  min-height: 44px;
  border-radius: 9999px;
  border: 1px solid #536471;
  background: #fff;
  color: #0f1419;
  font-family: inherit;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 12px;
  padding: 0 16px;
}

.btn-social:hover {
  background: #e7e7e8;
}

.btn-social svg,
.btn-social img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-social-dark {
  background: transparent;
  color: #e7e9ea;
  border-color: #536471;
}

.btn-social-dark:hover {
  background: rgba(231, 233, 234, 0.1);
}

.divider {
  display: flex;
  align-items: center;
  margin: 12px 0 20px;
  color: #71767b;
  font-size: 15px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e7e9ea;
}

.divider span {
  padding: 0 16px;
}

.field {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.field input {
  width: 100%;
  height: 56px;
  padding: 24px 8px 8px;
  background: #000;
  border: 1px solid #333639;
  border-radius: 4px;
  color: #e7e9ea;
  font-family: inherit;
  font-size: 17px;
  outline: none;
}

.field input:focus {
  border-color: #1d9bf0;
  box-shadow: 0 0 0 1px #1d9bf0;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field.has-value label,
.field input[readonly]:not([value=""]) + label,
.field input:not([value=""]) + label {
  top: 8px;
  font-size: 13px;
}

.field input[readonly] {
  color: #e7e9ea;
  cursor: default;
}

.field label {
  position: absolute;
  left: 8px;
  top: 18px;
  color: #71767b;
  font-size: 17px;
  pointer-events: none;
  transition: all 0.15s ease;
}

.field input:focus + label {
  color: #1d9bf0;
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 8px 0 0;
  color: #f4212e;
  font-size: 13px;
  line-height: 16px;
}

.field-error[hidden] {
  display: none;
}

.field-error svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.field-plain input {
  height: 56px;
  padding: 16px;
  border: 1px solid #333639;
  border-radius: 4px;
}

.field-plain input::placeholder {
  color: #71767b;
}

.code-input-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.code-box {
  width: 100%;
  aspect-ratio: 1;
  min-height: 56px;
  border: 1px solid #333639;
  border-radius: 4px;
  background: #000;
  color: #e7e9ea;
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  caret-color: #e7e9ea;
  outline: none;
}

.code-box:focus {
  border-color: #e7e9ea;
  box-shadow: none;
}

.countdown-line {
  display: block;
  font-size: 15px;
  line-height: 20px;
  color: #71767b;
  margin: 0 0 0;
}

.countdown-line strong {
  color: #e7e9ea;
  font-weight: 700;
}

.link-muted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 28px;
  color: #71767b;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}

.link-muted:hover {
  text-decoration: underline;
  color: #e7e9ea;
}

.link-muted svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 9999px;
  background: #eff3f4;
  color: #0f1419;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 12px;
}

.btn-primary:hover:not(:disabled) {
  background: #d7dbdc;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.legal {
  margin-top: 20px;
  font-size: 11px;
  line-height: 16px;
  color: #71767b;
}

.legal a {
  color: #e7e9ea;
}

.legal a:hover {
  text-decoration: underline;
}

.password-wrap {
  width: 100%;
  position: relative;
}

.password-wrap input {
  padding-right: 48px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #e7e9ea;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 9999px;
}

.toggle-password:hover {
  background: rgba(231, 233, 234, 0.1);
}

.toggle-password .icon-eye {
  width: 20px;
  height: 20px;
}

.phone-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1px solid #333639;
  border-radius: 4px;
  margin-bottom: 0;
  min-height: 56px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  background: #000;
  overflow: visible;
}

.phone-input-wrap.is-focused:not(.is-invalid),
.phone-input-wrap:focus-within:not(.is-invalid) {
  border-color: #1d9bf0;
  box-shadow: 0 0 0 1px #1d9bf0;
}

.phone-input-wrap.is-invalid {
  border-color: #f4212e;
  box-shadow: 0 0 0 1px #f4212e;
}

.phone-input-wrap.is-invalid .country-picker-wrap {
  border-right-color: #f4212e;
}

.phone-input-wrap.is-invalid .country-picker-trigger {
  color: #f4212e;
}

.country-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  align-self: stretch;
}

.country-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: #e7e9ea;
  font-family: inherit;
  cursor: pointer;
}

.country-picker-wrap.is-open .country-picker-trigger svg {
  transform: rotate(180deg);
}

.country-picker-label {
  color: #e7e9ea;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.country-picker-trigger svg {
  width: 16px;
  height: 16px;
  color: #71767b;
  pointer-events: none;
  transition: transform 0.15s ease;
}

.country-select {
  display: none;
}

.country-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 64px));
  max-height: 320px;
  background: #202327;
  border: 1px solid #333639;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.65) 0 8px 32px;
  overflow: hidden;
  z-index: 30;
}

.country-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #2f3336;
}

.country-search-wrap svg {
  width: 18px;
  height: 18px;
  color: #71767b;
  flex-shrink: 0;
}

.country-search-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #e7e9ea;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.country-search-wrap input::placeholder {
  color: #71767b;
}

.country-list {
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
}

.country-option {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 15px;
  line-height: 20px;
}

.country-option:hover,
.country-option.is-selected {
  background: rgba(231, 233, 234, 0.08);
}

.country-option-iso {
  color: #71767b;
  font-weight: 700;
  text-transform: uppercase;
}

.country-option-name {
  color: #e7e9ea;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-option-dial {
  color: #71767b;
}

.country-empty {
  padding: 16px;
  color: #71767b;
  font-size: 15px;
  text-align: center;
}

.phone-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #e7e9ea;
  font-family: inherit;
  font-size: 17px;
  outline: none;
}

.phone-input-wrap input::placeholder {
  color: #71767b;
}

.privacy-options svg {
  transition: transform 0.15s ease;
}

.privacy-options.is-open svg {
  transform: rotate(180deg);
}

.link-muted.forgot-link {
  margin: 0;
  color: #e7e9ea;
}

.flow-modal .btn-primary {
  margin-top: auto;
  flex-shrink: 0;
}

.flow-modal .btn-primary:disabled {
  background: #2f3336;
  color: #71767b;
  opacity: 1;
  cursor: default;
}

.flow-modal-lower .btn-primary,
.flow-modal .btn-primary.phone-continue {
  margin-top: 0;
}

.flow-modal .legal {
  margin-top: 16px;
  flex-shrink: 0;
}

.privacy-options {
  margin-top: 4px;
}

.verify-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #000;
}

.verify-center .modal-logo {
  width: 40px;
  height: 40px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #333639;
  border-top-color: #1d9bf0;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.verify-text {
  font-size: 15px;
  color: #71767b;
}

.site-footer {
  margin-top: auto;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
  font-size: 13px;
  color: #71767b;
  position: relative;
  z-index: 1;
}

.site-footer a:hover {
  text-decoration: underline;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1000px) {
  .page-body {
    grid-template-columns: 1fr;
    padding: 24px 16px 56px;
    min-height: auto;
  }

  .landing-right {
    display: none;
  }

  .landing-left {
    max-width: none;
    justify-self: stretch;
    padding-right: 0;
  }

  .landing-heading {
    font-size: 40px;
    line-height: 44px;
    margin-bottom: 28px;
  }

  .flow-modal {
    border-radius: 0;
    max-width: 100%;
    min-height: 100vh;
    background: #000;
    box-shadow: none;
  }

  .flow-modal-phone {
    min-height: 100vh;
  }

  .flow-modal-content {
    padding: 4px 16px 24px;
  }

  .flow-overlay {
    padding: 0;
    align-items: flex-start;
    background: #000;
  }

  .page-shell-dimmed .landing-left,
  .page-shell-dimmed .landing-right {
    display: none;
    filter: none;
  }

  .code-input-grid {
    gap: 8px;
  }

  .code-box {
    min-height: 48px;
    font-size: 24px;
  }
}
