.sms-page {
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: clamp(20px, 5vw, 76px) 24px;
}

.sms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: 16px;
  width: min(100%, 1056px);
  margin-inline: auto;
  padding: 14px;
  border: 1px solid #fff;
  border-radius: 34px;
  background: #ffffff8f;
  box-shadow: 0 24px 72px #3c265f19;
}

.sms-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 32px clamp(25px, 4.5vw, 68px) 34px;
}

.sms-brand {
  margin-block-end: 32px;
}

.sms-brand .wordmark > span {
  font-size: 41px;
}

.sms-brand .wordmark small {
  margin-block-start: 8px;
  font-size: 6px;
}

.sms-symbol {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-block-end: 12px;
  border: 1px solid #e5d7f5;
  border-radius: 16px;
  background: #efe6f9;
  color: #6c429e;
}

.sms-symbol .icon {
  width: 24px;
  height: 24px;
}

.sms-content h1 {
  font-size: clamp(27px, 3.1vw, 38px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.sms-description {
  margin-block: 10px 21px;
  color: #685a77;
  font-size: 14px;
}

.sms-description bdi {
  color: var(--ink);
  font-size: 1.06em;
  font-weight: 750;
  white-space: nowrap;
}

.sms-form label[for="customer-code"],
.sms-form label[for="customer-phone"] {
  display: block;
  margin-block-end: 7px;
  font-weight: 650;
}

#customer-code,
.sms-sign-in input[type="tel"] {
  width: 100%;
  height: 63px;
  padding: 0 14px;
  border: 1px solid #d3c0e8;
  border-radius: 15px;
  background: #faf6fe;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

#customer-code {
  font-size: 31px;
  font-weight: 700;
  letter-spacing: .29em;
  text-align: center;
  text-indent: .29em;
}

.sms-sign-in input[type="tel"] {
  padding-inline: 18px;
  font-size: 1.25rem;
  letter-spacing: .08em;
}

#customer-code::placeholder,
.sms-sign-in input::placeholder {
  color: #897899;
}

#customer-code:focus,
.sms-sign-in input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#customer-code[aria-invalid="true"],
.sms-sign-in input[aria-invalid="true"] {
  border-color: #bb503d;
}

.sms-code-help,
.sms-error {
  margin-block-start: 7px;
  font-size: 13px;
}

.sms-code-help {
  color: #685a77;
}

.sms-error {
  color: #9f3026;
  font-weight: 650;
}

.customer-demo-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin-block: -8px 18px;
  padding: 8px 13px;
  border: 1px solid #eadcf5;
  border-radius: 12px;
  background: #f4ecfb;
  color: #593b7c;
  font-size: 13px;
}

.customer-demo-code strong {
  font-size: 1rem;
  letter-spacing: .06em;
  user-select: all;
}

.sms-remember {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: fit-content;
  margin-block: 17px;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.65;
}

.sms-remember input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: #70469e;
  cursor: pointer;
}

.sms-remember small {
  display: block;
  margin-block-start: 3px;
  color: #685a77;
  font-size: 12px;
  font-weight: 450;
}

.sms-submit {
  width: 100%;
  min-height: 54px;
  font-size: 15px;
  gap: 14px;
}

.sms-code-help + .sms-submit {
  margin-block-start: 20px;
}

.sms-sign-in .sms-submit {
  margin-block-start: 16px;
}

.sms-telegram {
  margin-block-start: 12px;
}

.sms-telegram .sms-submit {
  border-color: #d3c0e8;
  color: #63418c;
}

.sms-telegram .sms-submit:hover {
  border-color: var(--accent);
  background: var(--surface-soft);
}

.sms-footer {
  margin-block-start: 18px;
  text-align: center;
  font-size: 13px;
}

.sms-footer a {
  color: #63418c;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sms-banner {
  position: relative;
  isolation: isolate;
  min-height: 555px;
  overflow: hidden;
  border-radius: 24px;
  background: #463254;
  color: #fffbed;
}

.sms-banner > img,
.sms-banner::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sms-banner > img {
  z-index: -2;
  object-fit: cover;
  object-position: center 39%;
}

.sms-banner::after {
  z-index: -1;
  background: linear-gradient(0deg, #22132eea 0%, #22132e80 25%, transparent 56%);
  content: "";
}

.sms-banner figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(23px, 3.3vw, 42px);
}

.sms-banner-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-block-end: 8px;
  font-size: 13px;
  font-weight: 550;
}

.sms-banner-label .icon {
  width: 17px;
  height: 17px;
  color: #ffbd9d;
}

.sms-banner p {
  font-size: clamp(25px, 2.65vw, 37px);
  font-weight: 780;
  line-height: 1.35;
}

.sms-banner-source {
  position: absolute;
  inset-block-start: clamp(16px, 2.6vw, 30px);
  inset-inline-end: clamp(16px, 2.6vw, 30px);
  display: block;
  width: clamp(74px, 9vw, 108px);
  overflow: hidden;
  border: 2px solid #fffbed;
  border-radius: 12px;
  background: #fffbed;
  color: var(--plum);
  text-align: center;
  font-size: .74rem;
  font-weight: 650;
  box-shadow: 0 10px 24px #28183e33;
}

.sms-banner-source img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 27%;
}

.sms-banner-source span {
  display: block;
  padding: 3px 2px;
}

@media (max-width: 760px) {
  .sms-page {
    align-items: start;
    padding-inline: 14px;
  }

  .sms-layout {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 510px;
    padding: 9px;
    border-radius: 26px;
  }

  .sms-panel {
    padding: 20px clamp(14px, 5vw, 28px) 22px;
  }

  .sms-brand {
    margin-block-end: 21px;
  }

  .sms-brand .wordmark > span {
    font-size: 34px;
  }

  .sms-symbol {
    width: 42px;
    height: 42px;
  }

  .sms-banner {
    min-height: 228px;
    border-radius: 18px;
  }

  .sms-banner > img {
    object-position: center 32%;
  }
}
