/* =========================
   ЛИЧНЫЙ КАБИНЕТ
========================= */

.account-page {
    min-height: 100svh;
    padding: 24px 22px 40px;
  
    position: relative;
  
    background:
      radial-gradient(
        circle at 80% 15%,
        rgba(255,255,255,.06),
        transparent 30%
      ),
      #000;
  
    color: #fff;
  
    font-family: "CinzelRus", serif;
  }
  
  
  /* НАЗАД */
  
  .account-back {
    position: absolute;
    top: 28px;
    left: 22px;
  
    color: rgba(255,255,255,0.62);
    text-decoration: none;
  
    font-size: 28px;
    font-family: "CinzelRus", serif;
    font-weight: 200;
  
    line-height: 1;
  }
  
  
  /* ЛОГО */
  
  .account-page-logo {
    padding-top: 10px;
  
    text-align: center;
  
    font-size: 17px;
    letter-spacing: 6px;
  
    color: rgba(255,255,255,.78);
  }
  
  
  /* ОСНОВНОЙ БЛОК */
  
  .auth-box {
    width: 100%;
    max-width: 430px;
  
    margin: 90px auto 0;
  }
  
  
  .auth-eyebrow {
    margin: 0 0 10px;
  
    text-align: center;
  
    font-size: 10px;
    letter-spacing: 5px;
  
    color: rgba(255,255,255,.4);
  }
  
  
  .auth-box h1 {
    margin: 0;
  
    text-align: center;
  
    font-size: 31px;
    font-weight: 400;
    letter-spacing: 4px;
  }
  
  
  /* ВОЙТИ / РЕГИСТРАЦИЯ */
  
  .auth-tabs {
    margin-top: 42px;
  
    display: grid;
    grid-template-columns: 1fr 1fr;
  
    border-bottom: 1px solid rgba(255,255,255,.16);
  }
  
  
  .auth-tab {
    padding: 0 0 13px;
  
    border: 0;
    border-bottom: 1px solid transparent;
  
    background: transparent;
  
    color: rgba(255,255,255,.4);
  
    font-family: "CinzelRus", serif;
    font-size: 13px;
    letter-spacing: 3px;
  }
  
  
  .auth-tab.active {
    color: #fff;
  
    border-bottom-color: rgba(255,255,255,.8);
  }
  
  
  /* ФОРМА */
  
  .auth-form {
    margin-top: 34px;
  
    display: flex;
    flex-direction: column;
    gap: 26px;
  }
  
  
  .auth-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  
  
  .auth-field span {
    font-size: 10px;
    letter-spacing: 3px;
  
    color: rgba(255,255,255,.45);
  }
  
  
  .auth-field input {
    width: 100%;
  
    padding: 0 0 10px;
  
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.25);
    outline: none;
  
    background: transparent;
  
    color: #fff;
  
    font-family: "CinzelRus", serif;
    font-size: 17px;
    letter-spacing: 1px;
  }
  
  
  .auth-field input::placeholder {
    color: rgba(255,255,255,.22);
  }
  
  
  /* КНОПКА ВОЙТИ */
  
  .auth-submit {
    width: 100%;
    min-height: 48px;
  
    margin-top: 12px;
    padding: 0 55px;
  
    position: relative;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
  
    background: linear-gradient(
      90deg,
      rgba(255,255,255,.10),
      rgba(255,255,255,.02)
    );
  
    color: #fff;
  
    font-family: "CinzelRus", serif;
    font-size: 14px;
    letter-spacing: 4px;
  }
  
  .auth-submit-text {
    position: static;
    display: block;
    width: 100%;
  
    text-align: center;
  
    font-family: "CinzelRus", serif;
  }
  
  .auth-submit-arrow {
    position: absolute;
    right: 18px;
  
    font-family: Arial, sans-serif;
    font-size: 18px;
    letter-spacing: 0;
  }

  .forgot-password {
    width: 100%;
  
    margin-top: 20px;
  
    border: 0;
  
    background: transparent;
  
    color: rgba(255,255,255,.38);
  
    font-family: "CinzelRus", serif;
    font-size: 10px;
    letter-spacing: 2px;
  }

  /* ПЛАВНОЕ ПОЯВЛЕНИЕ ПОЛЕЙ РЕГИСТРАЦИИ */

.register-field {
    display: none;
  }
  
  .auth-box.register-mode .register-field {
    display: flex;
    animation: authFade .25s ease;
  }
  
  @keyframes authFade {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
  
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* КОМПАКТНЕЕ ФОРМА ПРИ РЕГИСТРАЦИИ */

.auth-box.register-mode .auth-form {
    gap: 18px;
  }
  
  .auth-box.register-mode .auth-field {
    gap: 7px;
  }
  
  .auth-box.register-mode .auth-submit {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .auth-submit-text {
    position: static;
    display: block;
    text-align: center;
  }
  
  .auth-submit-arrow {
    position: absolute;
    right: 18px;
  
    font-family: Arial, sans-serif;
    font-size: 18px;
    letter-spacing: 0;
  }

  /* СОГЛАСИЕ ПРИ РЕГИСТРАЦИИ */

.auth-consent {
    align-items: center;
    gap: 10px;
  
    cursor: pointer;
  }
  
  .auth-consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  
  .consent-check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 2px;
  
    position: relative;
  }
  
  .auth-consent input:checked + .consent-check::after {
    content: "✓";
  
    position: absolute;
    inset: 0;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 11px;
  }
  
  .consent-text {
    font-size: 8px;
    line-height: 1.4;
    letter-spacing: 1.5px;
  
    color: rgba(255,255,255,.42);
  }

  /* ПОВТОРНАЯ ОТПРАВКА ПИСЬМА */

.resend-email {
    display: none;
  
    width: 100%;
    margin-top: 18px;
    padding: 0;
  
    border: 0;
    background: transparent;
  
    color: rgba(255,255,255,.5);
  
    font-family: "CinzelRus", serif;
    font-size: 10px;
    letter-spacing: 2px;
  
    text-align: center;
    cursor: pointer;
  }
  
  .resend-email:hover {
    color: #fff;
  }
  
  .resend-email.visible {
    display: block;
  }

  /* ЛИЧНЫЙ КАБИНЕТ ПОСЛЕ ВХОДА */

.profile-box {
    display: none;
  
    width: 100%;
    max-width: 430px;
    margin: 75px auto 0;
  }
  
  .profile-box.active {
    display: block;
  }
  
  
  .profile-title {
    margin: 0;
  
    text-align: center;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 3px;
  }
  
  .profile-title span {
    display: block;
    margin-top: 7px;
  }
  
  .profile-email {
    margin: 12px 0 0;
    text-align: center;
  
    font-size: 12px;
    letter-spacing: 1.5px;
  
    color: rgba(255,255,255,.38);
  }
  
  .profile-links {
    margin-top: 42px;
  
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .profile-card {
    min-height: 88px;
    padding: 16px 18px;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
  
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
  
    background:
      linear-gradient(
        100deg,
        rgba(255,255,255,.07),
        rgba(255,255,255,.01)
      );
  
    color: #fff;
    text-decoration: none;
  }
  
  .profile-card div {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .profile-card-label {
    font-size: 16px;
    letter-spacing: 2px;
  }
  
  .profile-card-text {
    font-size: 8px;
    line-height: 1.3;
    letter-spacing: 1.2px;
  
    color: rgba(255,255,255,.42);
  }
  
  .profile-card-arrow {
    width: 30px;
    height: 30px;
  
    flex-shrink: 0;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
  
    font-family: Arial, sans-serif;
    font-size: 14px;
  }
  
  .logout-btn {
    width: 100%;
    margin-top: 28px;
    padding: 14px;
  
    border: 0;
    background: transparent;
  
    color: rgba(255,255,255,.42);
  
    font-family: "CinzelRus", serif;
    font-size: 10px;
    letter-spacing: 2.5px;
  
    cursor: pointer;
  }

  .booking-list {
    margin-top: 12px;
    margin-bottom: 12px;
  
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .booking-item {
    padding: 16px;
  
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
  
    background: rgba(255,255,255,.025);
  }
  
  .booking-item-date {
    font-size: 16px;
    letter-spacing: 2px;
  }
  
  .booking-item-title {
    margin-top: 6px;
  
    font-size: 11px;
    letter-spacing: 1.5px;
  
    color: rgba(255,255,255,.58);
  }
  
  .booking-item-status {
    margin-top: 10px;
  
    font-size: 9px;
    letter-spacing: 2px;
  
    color: rgba(255,255,255,.38);
  }

  /* РАСКРЫТИЕ БРОНЕЙ */

#bookingList {
    display: none;
  }
  
  #bookingList.open {
    display: block;
    animation: bookingsOpen .3s ease;
  }
  
  @keyframes bookingsOpen {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
  
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  #bookingsBtn {
    cursor: pointer;
  }

  /* Скрываем этапы авторизации */
[hidden] {
    display: none !important;
  }

  /* ===== СОГЛАСИЕ / CHECKBOX ===== */

.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-top: 22px;
  }
  
  .auth-consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  
  .consent-check {
    width: 16px;
    height: 16px;
    min-width: 16px;
  
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 2px;
  
    position: relative;
    margin-top: 1px;
  
    box-sizing: border-box;
  }
  
  .auth-consent input:checked + .consent-check {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
  }
  
  .auth-consent input:checked + .consent-check::after {
    content: "";
    position: absolute;
  
    left: 4px;
    top: 1px;
  
    width: 4px;
    height: 8px;
  
    border: solid #090909;
    border-width: 0 1.5px 1.5px 0;
  
    transform: rotate(45deg);
  }
  
  .consent-text {
    flex: 1;
  
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.18em;
  
    color: rgba(255, 255, 255, 0.42);
  }

  /* Ошибка — пользователь не дал согласие */

.auth-consent {
    transition: color 0.25s ease;
  }
  
  .auth-consent .consent-check {
    transition:
      border-color 0.25s ease,
      box-shadow 0.25s ease,
      background 0.25s ease;
  }
  
  .auth-consent .consent-text {
    transition: color 0.25s ease;
  }
  
  .auth-consent.consent-error .consent-check {
    border-color: #b72b2b;
    box-shadow: 0 0 8px rgba(183, 43, 43, 0.35);
  }
  
  .auth-consent.consent-error .consent-text {
    color: #b72b2b;
  }

  /* =========================
   СОГЛАСИЕ
========================= */

.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
  }
  
  .consent-label {
    display: block;
    flex-shrink: 0;
    cursor: pointer;
  }
  
  .consent-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  
  .consent-check {
    display: block;
  
    width: 16px;
    height: 16px;
  
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 2px;
  
    position: relative;
  
    box-sizing: border-box;
  
    transition:
      border-color 0.25s ease,
      background 0.25s ease,
      box-shadow 0.25s ease;
  }
  
  .consent-label input:checked + .consent-check {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
  }
  
  .consent-label input:checked + .consent-check::after {
    content: "";
  
    position: absolute;
  
    left: 4px;
    top: 1px;
  
    width: 4px;
    height: 8px;
  
    border: solid #080808;
    border-width: 0 1.5px 1.5px 0;
  
    transform: rotate(45deg);
  }
  
  .consent-text {
    flex: 1;
  
    font-size: 10px;
    line-height: 1.55;
    letter-spacing: 0.14em;
  
    color: rgba(255, 255, 255, 0.42);
  
    transition: color 0.25s ease;
  }
  
  .consent-link {
    color: rgba(255, 255, 255, 0.7);
  
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }
  
  .consent-link:active {
    opacity: 0.6;
  }
  
  
  /* ОШИБКА — ГАЛОЧКА НЕ ПОСТАВЛЕНА */
  
  .auth-consent.consent-error .consent-check {
    border-color: #b52b2b;
    box-shadow: 0 0 8px rgba(181, 43, 43, 0.4);
  }
  
  .auth-consent.consent-error .consent-text {
    color: #b52b2b;
  }
  
  .auth-consent.consent-error .consent-link {
    color: #d34a4a;
    border-bottom-color: rgba(211, 74, 74, 0.45);
  }

  /* ========================================
   OTP — ПОВТОРНЫЙ КОД / ИЗМЕНИТЬ НОМЕР
======================================== */

#resendCode,
#changePhone {
  display: block;
  width: auto;

  margin-left: auto;
  margin-right: auto;

  padding: 0;

  background: transparent;
  border: 0;
  border-radius: 0;

  font-family: inherit;
  text-transform: uppercase;

  cursor: pointer;
}


/* ПОВТОРНАЯ ОТПРАВКА */

#resendCode {
  margin-top: 10px;

  font-size: 10px;
  letter-spacing: 0.18em;

  color: rgba(255, 255, 255, 0.55);

  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}


/* Пока идёт таймер */

#resendCode:disabled {
  color: rgba(255, 255, 255, 0.25);
  opacity: 1;

  cursor: default;
}


/* ИЗМЕНИТЬ НОМЕР */

#changePhone {
  margin-top: 4px;

  font-size: 9px;
  letter-spacing: 0.22em;

  color: rgba(255, 255, 255, 0.32);

  border-bottom: 1px solid rgba(255, 255, 255, 0.15);

  padding-bottom: 3px;

  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

#changePhone:active {
  color: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

/* ========================================
   OTP — 6 ОКОШЕК
======================================== */

.otp-code-wrap {
    position: relative;
    width: 100%;
    margin-top: 18px;
  }
  
  .otp-boxes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    width: 100%;
  }
  
  .otp-box {
    position: relative;
  
    height: 58px;
  
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 12px;
  
    background:
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.035),
        rgba(255, 255, 255, 0.008)
      );
  
    box-sizing: border-box;
  
    transition:
      border-color 0.25s ease,
      box-shadow 0.25s ease;
  }
  
  
  /* Настоящий input лежит поверх всех 6 ячеек */
  
  .otp-real-input {
    position: absolute;
    inset: 0;
  
    width: 100%;
    height: 100%;
  
    opacity: 0;
  
    border: 0;
    padding: 0;
    margin: 0;
  
    cursor: text;
  }
  
  
  /* Активное поле */
  
  .otp-code-wrap:focus-within .otp-box {
    border-color: rgba(255, 255, 255, 0.6);
  }

  .otp-box {
    display: flex;
    align-items: center;
    justify-content: center;
  
    font-family: "CinzelRus", serif;
    font-size: 24px;
  
    color: rgba(255, 255, 255, 0.92);
  }
  
  .otp-box.filled {
    border-color: rgba(255, 255, 255, 0.75);
  
    box-shadow:
      inset 0 0 18px rgba(255, 255, 255, 0.025);
  }

  /* =========================
   НАСТРОЙКИ — ИКОНКА
========================= */

.settings-btn {
    position: absolute;
    top: 22px;
    right: 22px;
  
    width: 40px;
    height: 40px;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    text-decoration: none;
    z-index: 10;
  }
  
  
  .settings-btn img {
    width: 23px;
    height: 23px;
    display: block;
    opacity: 0.72;
  }

  .phone-login-toggle {
    display: block;
    width: auto;
    margin: 16px auto 0;
    padding: 0;
  
    border: 0;
    background: transparent;
  
    color: rgba(255, 255, 255, 0.38);
    font: inherit;
    font-size: 11px;
    letter-spacing: 0.16em;
  
    text-align: center;
    cursor: pointer;
  }
  
  .phone-login-toggle:hover {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .phone-auth-form {
    display: none;
    margin-top: 22px;
  }
  
  .phone-auth-form.is-open {
    display: block;
  }

  /* ===== КОМПОЗИЦИЯ ЭКРАНА ВХОДА ===== */

.auth-box {
    padding-top: 145px;
  }
  
  /* маленькая ТАКТА над заголовком */
  .auth-eyebrow {
    margin: 0 0 14px;
  }
  
  /* ЛИЧНЫЙ КАБИНЕТ */
  .auth-box h1 {
    margin: 0 0 28px;
  }
  
  /* главная кнопка Telegram */
  .telegram-login {
    margin-top: 0;
  }
  
  /* резервный вход по телефону */
  .phone-login-toggle {
    margin: 32px auto 0;
  }
  
  /* раскрытая форма телефона */
  .phone-auth-form {
    margin-top: 28px;
  }
  .telegram-login {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Telegram слева */
  .telegram-icon {
    position: absolute;
    left: 34px;
  
    width: 22px;
    height: 22px;
  
    display: block;
    object-fit: contain;
  }
  
  /* Текст остаётся строго по центру */
  .telegram-login .auth-submit-text {
    text-align: center;
  }
  
  /* Стрелка справа */
  .telegram-login .auth-submit-arrow {
    position: absolute;
    right: 34px;
  }

  .auth-logo {
    cursor: pointer;
  }

  /* Логотип JAX по центру только в личном кабинете */
.account-page > .auth-logo {
  position: absolute;
  top: px;
  left: 50%;

  transform: translateX(-50%);

  margin: 0;
  padding: 0;

  width: auto;

  text-align: center;
  font-size: 17px;
  letter-spacing: 6px;

  color: rgba(255, 255, 255, 0.78);

  cursor: pointer;
  z-index: 10;
}

/* =========================
   ШАПКА — КАК В РОЛЯХ
========================= */

.account-page {
  position: relative;
}

.account-page-logo {
  position: absolute;
  top: 0;
  left: 50%;

  height: 84px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateX(-50%);

  padding: 0;
  margin: 0;

  color: inherit;
  text-decoration: none;

  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1;

  cursor: pointer;
  z-index: 10;
}

.account-back {
  position: absolute;
  top: 0;
  left: 22px;

  height: 84px;

  display: flex;
  align-items: center;

  padding: 0;
  margin: 0;

  color: rgba(255,255,255,0.7);
  text-decoration: none;

  font-size: 22px;
  font-family: inherit;
  font-weight: 400;
  line-height: 1;

  z-index: 10;
}
