/* Стили страницы регистрации в ПЛ (из папки loyality/). Изолированы: глобальные правила
   body/html/*/prefers-reduced-motion УБРАНЫ (ломали бы сайт), фон на .loyalty-page,
   .page-shell без 100svh. Шрифты — <link> в blade (не @import: он под CSP сайта ломал
   парсинг CSSOM и правило .loyalty-page выпадало). Цвета — литералами, без CSS-переменных. */
.loyalty-page {
  background: #f5f5f3;
  font-family: Inter, Arial, sans-serif;
}
.loyalty-page * { box-sizing: border-box; }

.page-shell {
  display: grid;
  place-items: center;
  padding: 32px;
}

.loyalty {
  width: min(1180px, 100%);
  min-height: min(780px, calc(100svh - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, .96fr);
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .07);
}

.loyalty__intro { position: relative; isolation: isolate; min-height: 100%; overflow: hidden; color: #fff; }
.intro__image {
  position: absolute; inset: 0; z-index: -3;
  background: url('/img/loyalty/vellori-interior.jpg') 75% center / cover no-repeat;
  transform: scale(1.03);
}
.intro__veil {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(12, 12, 12, .94) 0%, rgba(12, 12, 12, .78) 50%, rgba(12, 12, 12, .28) 100%);
}
.intro__content { min-height: 100%; display: flex; flex-direction: column; padding: 46px 52px 44px; }
.brand { width: 178px; height: auto; filter: brightness(0) invert(1); object-fit: contain; }
.intro__copy { margin: auto 0 40px; max-width: 470px; }
.signup-bonus {
  width: fit-content; display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 10px 14px;
  border-radius: 8px; background: #ff7f00; color: #fff; text-transform: uppercase;
}
.signup-bonus strong { font-family: Roboto, Inter, sans-serif; font-size: 30px; line-height: 1; }
.signup-bonus span { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .45); font-size: 10px; font-weight: 700; line-height: 1.25; }
.eyebrow { margin: 0 0 16px; color: #ff7f00; font-size: 12px; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: .12em; }
.intro__copy h1 { margin: 0; color: #fff; font-family: Roboto, Inter, sans-serif; font-size: clamp(42px, 4vw, 64px); line-height: 1.02; letter-spacing: 0; }
.intro__lead { max-width: 430px; margin: 24px 0 0; color: rgba(255, 255, 255, .78); font-size: 17px; line-height: 1.55; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, .24); list-style: none; }
.benefits li { display: flex; gap: 10px; min-width: 0; }
.benefits li + li { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .18); }
.benefits span { color: #ff7f00; font-size: 11px; font-weight: 700; }
.benefits strong, .benefits small { display: block; }
.benefits strong { margin-bottom: 4px; font-size: 13px; line-height: 1.25; }
.benefits small { color: rgba(255, 255, 255, .62); font-size: 11px; line-height: 1.35; }

.loyalty__form-wrap { position: relative; align-self: center; width: min(100%, 520px); margin: 0 auto; padding: 48px 56px; }
.form-head { margin-bottom: 30px; }
.form-head h2, .success h2 { margin: 0 0 10px; font-family: Roboto, Inter, sans-serif; font-size: 32px; line-height: 1.15; }
.form-head > p:last-child, .success > p:not(.eyebrow) { margin: 0; color: #707070; font-size: 14px; line-height: 1.55; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 15px; }
.field label { display: block; margin: 0 0 7px; color: #464646; font-size: 13px; font-weight: 500; }
.field label span { color: #999; font-size: 11px; font-weight: 400; }
.field input {
  width: 100%; height: 49px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; outline: none;
  background: #f6f6f6; color: #111111; font-size: 14px; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: #9a9a9a; }
.field input:hover { background: #f1f1f1; }
.field input:focus { background: #fff; border-color: #ff7f00; box-shadow: 0 0 0 3px rgba(255, 127, 0, .1); }
.field.has-error input { border-color: #c43a31; background: #fffafa; }
.field__error { display: block; min-height: 14px; margin: 5px 0 -5px; color: #c43a31; font-size: 11px; }

.password-control { position: relative; }
.password-control input { padding-right: 50px; }
.password-toggle { position: absolute; top: 50%; right: 7px; width: 36px; height: 36px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.password-toggle:hover { background: #eaeaea; }
.password-toggle span { position: absolute; top: 11px; left: 9px; width: 18px; height: 13px; border: 1.8px solid #777; border-radius: 50% / 60%; }
.password-toggle span::after { content: ''; position: absolute; top: 3px; left: 6px; width: 4px; height: 4px; border-radius: 50%; background: #777; }

.check { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: #626262; font-size: 12px; line-height: 1.45; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { width: 19px; height: 19px; border: 1px solid #bdbdbd; border-radius: 4px; background: #fff; }
.check input:focus-visible + .check__box { outline: 3px solid rgba(255, 127, 0, .16); border-color: #ff7f00; }
.check input:checked + .check__box { border-color: #ff7f00; background: #ff7f00; }
.check input:checked + .check__box::after { content: ''; display: block; width: 8px; height: 4px; margin: 5px 0 0 4px; transform: rotate(-45deg); border-left: 2px solid #fff; border-bottom: 2px solid #fff; }
.check a, .login-link a { color: #e66f00; text-decoration: underline; text-underline-offset: 2px; }
.check--optional { margin-top: 12px; }
.consent-error { min-height: 14px; margin: 4px 0 -2px 30px; color: #c43a31; font-size: 11px; }

.submit-button { width: 100%; height: 50px; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; border: 0; border-radius: 8px; background: #ff7f00; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.submit-button:hover { background: #e66f00; }
.submit-button:active { transform: translateY(1px); }
.submit-button span:last-child { font-size: 19px; }

.login-link { margin: 18px 0 0; color: #707070; text-align: center; font-size: 13px; }

.success { text-align: center; padding: 50px 8px; }
.success__mark { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; background: #ff7f00; color: #fff; font-size: 28px; font-weight: 700; }
.success .eyebrow { margin-bottom: 12px; }
.success button { margin-top: 28px; padding: 12px 18px; border: 1px solid #e8e8e8; border-radius: 8px; background: #fff; cursor: pointer; }

@media (max-width: 900px) {
  .page-shell { padding: 20px; place-items: start center; }
  .loyalty { min-height: 0; grid-template-columns: 1fr; }
  .loyalty__intro { min-height: 440px; }
  .intro__content { padding: 36px 40px; }
  .intro__copy { margin: 70px 0 36px; }
  .intro__copy h1 { font-size: 48px; }
  .loyalty__form-wrap { padding: 44px 40px 48px; }
}
@media (max-width: 560px) {
  .page-shell { display: block; padding: 0; }
  .loyalty { border: 0; border-radius: 0; box-shadow: none; }
  .loyalty__intro { min-height: 460px; }
  .intro__image { background-position: 77% center; }
  .intro__veil { background: linear-gradient(90deg, rgba(12, 12, 12, .94), rgba(12, 12, 12, .58)); }
  .intro__content { padding: 28px 22px; }
  .brand { width: 146px; }
  .intro__copy { margin: 64px 0 30px; }
  .intro__copy h1 { font-size: 40px; }
  .intro__lead { font-size: 15px; }
  .benefits { grid-template-columns: 1fr; gap: 12px; padding-top: 18px; }
  .benefits li + li { padding-left: 0; border-left: 0; }
  .benefits small { display: inline; margin-left: 5px; }
  .loyalty__form-wrap { padding: 38px 22px 44px; }
  .form-head h2 { font-size: 28px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ── Вход через Яндекс ID + шаг подтверждения по SMS (ТЗ #3) ───────────────── */
.yandex-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 50px; margin-bottom: 10px;
  border-radius: 8px; background: #000; color: #fff;
  font-size: 15px; font-weight: 500; transition: opacity .2s ease;
}
.yandex-btn:hover { opacity: .85; }
.yandex-btn.is-disabled { opacity: .45; cursor: not-allowed; }
.yandex-btn__logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fc3f1d; color: #fff; font-weight: 700; font-size: 15px; line-height: 1;
}
.check + .check { margin-top: 10px; }
.club-hint { margin: 0 0 10px; color: #c43a31; font-size: 12px; line-height: 1.45; }
.club-divider { position: relative; margin: 18px 0 22px; text-align: center; }
.club-divider::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #e8e8e8; }
.club-divider span { position: relative; padding: 0 12px; background: #fff; color: #9a9a9a; font-size: 12px; }
.club-sent { margin: 0 0 14px; color: #707070; font-size: 13px; line-height: 1.5; }
.club-change { padding: 0; border: 0; background: none; color: #e66f00; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.club-error { margin: 12px 0 0; color: #c43a31; font-size: 12px; line-height: 1.45; }
.submit-button[disabled] { opacity: .6; cursor: not-allowed; }
/* Антибот-ловушка: скрыта от людей, но доступна ботам. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
