@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;900&display=swap');

:root {
  --page-bg: #f5f6fb;
  --text-dark: #2d3341;
  --text-soft: #6f7580;
  --green: #12c27f;
  --green-title: #10bd7a;
  --orange: #ffad13;
  --red: #ff3f40;
  --line: #e6e9f0;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  min-height: 100svh;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  padding:
    max(10px, env(safe-area-inset-top))
    max(0px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(0px, env(safe-area-inset-left));
  background: var(--page-bg);
  color: var(--text-dark);
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

.page {
  width: 100%;
  max-width: 503px;
  margin: auto;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--page-bg);
}

.hero {
  width: 100%;
  height: auto;
  aspect-ratio: 503 / 166;
  max-height: 166px;
  overflow: hidden;
  background: #e8faf7;
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro {
  padding: clamp(18px, 4.2vw, 22px) clamp(22px, 5vw, 27px) 0;
  text-align: center;
}

.intro h1,
.bonus,
.gift,
.desc,
.login-card h2,
.security {
  padding: 0;
}

.intro h1 {
  margin: 0 0 4px;
  color: var(--text-dark);
  font-size: clamp(25px, 6.05vw, 31px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.8px;
  white-space: nowrap;
}

.bonus {
  margin: 0;
  color: var(--orange);
  font-size: clamp(38px, 8.85vw, 45px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 1.1px;
  white-space: nowrap;
}

.gift {
  margin: 6px 0 13px;
  color: var(--text-dark);
  font-size: clamp(25px, 6.25vw, 31px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.25px;
  white-space: nowrap;
}

.gift span {
  display: inline-block;
  background: linear-gradient(
    90deg,
    #8b3fd4 0%,
    #e85d24 28%,
    #f5b800 52%,
    #b8e600 78%,
    #12c27f 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: 1px;
}

.gift::first-letter,
.gift span::first-letter {
  letter-spacing: 0;
}

.desc {
  max-width: 455px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: clamp(15.5px, 3.45vw, 17px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.12px;
}

.desc strong {
  color: #555c66;
  font-weight: 800;
}

.login-card {
  margin-top: clamp(20px, 4.5vw, 26px);
  padding: clamp(32px, 7vw, 38px) clamp(24px, 5.2vw, 28px) clamp(30px, 6.5vw, 36px);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(27, 39, 63, 0.06);
  text-align: center;
}

.login-card h2 {
  margin: 0 0 clamp(28px, 6vw, 32px);
  color: var(--green-title);
  font-size: clamp(24px, 5.55vw, 29px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.15px;
  white-space: nowrap;
}

.form {
  width: 100%;
}

.phone-field {
  display: flex;
  align-items: center;
  width: 100%;
  height: clamp(58px, 12.35vw, 62px);
  padding: 0 clamp(14px, 3.2vw, 16px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfd;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.01);
}

.flag {
  width: clamp(28px, 5.8vw, 30px);
  height: clamp(18px, 3.8vw, 19px);
  flex: 0 0 auto;
  border-radius: 2px;
  object-fit: cover;
}

.country-code {
  margin-left: 10px;
  color: #303744;
  font-size: clamp(17px, 3.75vw, 19px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.divider {
  width: 1px;
  height: 34px;
  margin: 0 clamp(12px, 3vw, 16px);
  flex: 0 0 auto;
  background: #e1e4eb;
}

.phone-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #303744;
  font-size: clamp(18px, 4.05vw, 20px);
  font-weight: 800;
  line-height: 1.2;
  padding-top: 5px;
}

.phone-field input:placeholder-shown {
  padding-top: 9px;
}

.phone-field input::placeholder {
  color: #777d88;
  opacity: 1;
  line-height: 1.2;
}

.otp-field {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(58px, 12.35vw, 62px);
  padding: 0 clamp(14px, 3.2vw, 16px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfd;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.01);
}

.otp-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #303744;
  font-size: clamp(22px, 5vw, 26px);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.35em;
}

.otp-field input::placeholder {
  color: #8b919c;
  font-size: clamp(13px, 3vw, 15px);
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 1;
}

.otp-card .otp-title {
  margin: 0 0 10px;
  color: var(--green-title);
  font-size: clamp(19px, 4.4vw, 22px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.05px;
  white-space: nowrap;
}

.otp-subtitle {
  max-width: 320px;
  margin: 0 auto 14px;
  color: var(--text-soft);
  font-size: clamp(12.5px, 2.9vw, 14px);
  font-weight: 500;
  line-height: 1.45;
}

.otp-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 clamp(22px, 5vw, 28px);
  color: #4a5160;
  font-size: clamp(14px, 3.2vw, 15.5px);
  font-weight: 700;
  line-height: 1.2;
}

.otp-timer__value {
  min-width: 3.6em;
  color: var(--green-title);
  font-size: clamp(16px, 3.6vw, 18px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

button {
  width: 100%;
  height: clamp(60px, 12.7vw, 64px);
  margin-top: clamp(26px, 5.55vw, 29px);
  border: 0;
  border-radius: 9px;
  background: var(--green-title);
  box-shadow: 0 12px 25px rgba(16, 189, 121, 0.16);
  color: #ffffff;
  font-size: clamp(15.5px, 3.45vw, 17.5px);
  font-weight: 900;
  letter-spacing: 0.05px;
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

.security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: clamp(32px, 6.8vw, 37px) 0 0;
  color: #8b919c;
  font-size: clamp(12px, 2.7vw, 13.5px);
  font-weight: 600;
  line-height: 1.2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 390px) {
  .intro {
    padding-inline: 20px;
  }

  .desc {
    font-size: 15.5px;
    line-height: 1.5;
  }

  .login-card {
    padding-inline: 24px;
  }
}

@media (max-width: 350px) {
  .intro h1 {
    font-size: 23px;
  }

  .bonus {
    font-size: 35px;
  }

  .gift {
    font-size: 23px;
  }

  .login-card h2 {
    font-size: 22px;
  }

  .otp-card .otp-title {
    font-size: 17px;
  }

  .phone-field {
    padding-inline: 12px;
  }

  .country-code {
    margin-left: 8px;
  }

  .divider {
    margin-inline: 10px;
  }
}

@media (max-height: 740px) and (max-width: 503px) {
  .intro {
    padding-top: 16px;
  }

  .gift {
    margin-bottom: 10px;
  }

  .desc {
    line-height: 1.45;
  }

  .login-card {
    margin-top: 22px;
    padding-top: 32px;
  }

  .security {
    margin-top: 28px;
  }
}

.success-card {
  padding-top: clamp(48px, 10vw, 56px);
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 14vw, 72px);
  height: clamp(64px, 14vw, 72px);
  margin: 0 auto clamp(22px, 5vw, 28px);
  border-radius: 50%;
  background: rgba(16, 189, 121, 0.12);
  color: var(--green-title);
  font-size: clamp(32px, 7vw, 36px);
  font-weight: 900;
  line-height: 1;
}

.success-card h2 {
  margin: 0 0 clamp(14px, 3vw, 18px);
  color: var(--text-dark);
  font-size: clamp(22px, 5.2vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.2px;
  white-space: normal;
}

.success-text {
  max-width: 380px;
  margin: 0 auto clamp(28px, 6vw, 34px);
  color: var(--text-soft);
  font-size: clamp(15px, 3.4vw, 17px);
  font-weight: 500;
  line-height: 1.55;
}

.success-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: clamp(52px, 11vw, 56px);
  padding: 0 24px;
  border-radius: 9px;
  background: var(--green-title);
  box-shadow: 0 12px 25px rgba(16, 189, 121, 0.16);
  color: #ffffff;
  font-size: clamp(16px, 3.6vw, 18px);
  font-weight: 800;
  text-decoration: none;
}

.success-link:active {
  transform: translateY(1px);
}

@media (max-width: 699px) {
  .hero {
    max-height: clamp(120px, 28vw, 150px);
  }

  .intro {
    padding-top: clamp(14px, 3.5vw, 18px);
  }

  .gift {
    margin-bottom: clamp(8px, 2vw, 11px);
  }

  .desc {
    font-size: clamp(14.5px, 3.2vw, 16px);
    line-height: 1.48;
  }
}

@media (min-width: 700px) {
  body {
    display: grid;
    place-items: center;
    padding: 24px 16px;
  }

  .page {
    border-radius: 20px;
    box-shadow: 0 22px 70px rgba(20, 24, 40, 0.12);
  }
}
