@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-v49-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_math_symbols_vietnamese-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --auth-primary: #00a6ff;
  --auth-text: #222;
  --auth-muted: #666;
  --auth-white: #fff;
  --auth-border: #ddd;
  --auth-placeholder: #bcbec3;
  --auth-disabled: #e3e3e3;
  --auth-disabled-text: #999;
  --auth-phone-background: #efeff4;
  --auth-font: 'Roboto', Arial, sans-serif;
  --auth-gutter: 4.2667%;
  --auth-radius: 6px;
}

.auth-preview {
  margin: 0;
  font-family: var(--auth-font);
  font-size: 14px;
  line-height: 1.4;
  color: var(--auth-text);
  background: var(--auth-white);
}

.auth-preview__page {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100svh;
  margin: 0 auto;
  background: url('../images/welcomeBackground.png') center top / cover no-repeat;
}

.auth-preview__hero {
  position: relative;
  display: flex;
  align-items: center;
  aspect-ratio: 390 / 300;
}

.auth-preview__banner {
  display: block;
  width: 100%;
  height: auto;
}

.auth-preview__back,
.auth-preview__support {
  position: absolute;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: var(--auth-radius);
  color: var(--auth-text);
  background: var(--auth-white);
}

.auth-preview__back {
  left: var(--auth-gutter);
}

.auth-preview__support {
  right: var(--auth-gutter);
  background: transparent;
}

.auth-preview__support-icon {
  display: block;
  width: 26px;
  height: 26px;
}

.auth-preview__icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-preview__content {
  padding: 12px var(--auth-gutter) calc(40px + env(safe-area-inset-bottom));
}

.auth-preview__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
}

.auth-preview__notice {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 16px;
  color: var(--auth-muted);
  text-align: center;
}

.auth-preview__tabs {
  display: flex;
  gap: 12px;
  margin: 0 20px 28px;
}

.auth-preview__tab {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 5px 0 10px;
  border: 0;
  font: inherit;
  font-size: 16px;
  color: var(--auth-muted);
  text-align: center;
  text-decoration: none;
  opacity: 1;
  background: transparent;
  -webkit-text-fill-color: var(--auth-muted);
}

.auth-preview__tab--active {
  color: var(--auth-text);
  -webkit-text-fill-color: var(--auth-text);
}

.auth-preview__tab--active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: '';
  background: var(--auth-primary);
}

.auth-preview__fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0;
}

.auth-preview__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.auth-preview__field {
  margin-bottom: 16px;
}

.auth-preview__input-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  color: var(--auth-placeholder);
  background: var(--auth-white);
}

.auth-preview__input-wrap--phone {
  padding-left: 44px;
  background: var(--auth-phone-background);
}

.auth-preview__prefix {
  flex-shrink: 0;
  color: var(--auth-muted);
}

.auth-preview__input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  font: inherit;
  color: var(--auth-text);
  opacity: 1;
  background: transparent;
  -webkit-text-fill-color: var(--auth-text);
}

.auth-preview__input::placeholder {
  color: var(--auth-placeholder);
  -webkit-text-fill-color: var(--auth-placeholder);
  opacity: 1;
}

.auth-preview__input-wrap:focus-within {
  border-color: var(--auth-primary);
}

.auth-preview__input-wrap--error {
  border-color: #e23b3b !important;
}

.auth-preview__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.auth-preview__options {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 24px;
}

.auth-preview__check {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  color: var(--auth-muted);
}

.auth-preview__checkbox {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--auth-primary);
}

.auth-preview__text-button {
  padding: 0;
  border: 0;
  font: inherit;
  color: var(--auth-primary);
  text-align: right;
  background: transparent;
}

.auth-preview__referral {
  padding: 0;
  border: 0;
  margin: -3px 0 12px;
  font: inherit;
  font-size: 12px;
  color: var(--auth-disabled-text);
  background: transparent;
}

.auth-preview__terms {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 16px;
  color: var(--auth-muted);
}

.auth-preview__terms-link {
  color: var(--auth-primary);
}

.auth-preview__submit {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px;
  border: 0;
  border-radius: var(--auth-radius);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--auth-white);
  opacity: 1;
  background: var(--auth-primary);
  cursor: pointer;
  transition: opacity .2s;
}

.auth-preview__submit:hover {
  opacity: 0.9;
}

.auth-preview__submit:disabled {
  color: var(--auth-disabled-text);
  background: var(--auth-disabled);
  cursor: not-allowed;
  opacity: 1;
}

.auth-preview__switch {
  margin: 20px 0 0;
  color: var(--auth-muted);
  text-align: center;
}

.auth-preview__switch-link {
  color: var(--auth-primary);
  text-decoration: none;
}

.auth-preview__sponsor {
  margin-top: 32px;
  text-align: center;
}

.auth-preview__sponsor-logo {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto;
  object-fit: contain;
}

.auth-preview__sponsor-text {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--auth-disabled-text);
}

.auth-preview__tab:focus-visible,
.auth-preview__back:focus-visible,
.auth-preview__switch-link:focus-visible {
  outline: 2px solid var(--auth-primary);
  outline-offset: 3px;
}
