@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap");

.auth-page {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--lb-gray);
  overflow-x: hidden;
}

.auth-page__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0 0.8rem;
}

.auth-page .header-navbar {
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 34rem;
}

.auth-page .lionbets-download-banner {
  padding: 5px 10px;
  min-height: 40px;
}

.auth-page .lionbets-banner-text {
  font-size: 0.84rem;
  line-height: 1.2;
}

.auth-page .lionbets-download-btn {
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 0.72rem;
  line-height: 1.1;
}

.auth-page .dynamic-navbar-spacer {
  margin-top: 40px !important;
}

.auth-shell {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1.15rem) 0.65rem;
}

.auth-shell__frame {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: clamp(0.7rem, 2vw, 1rem);
  background:
    radial-gradient(circle at top left, rgba(201, 168, 76, 0.16), transparent 26%),
    linear-gradient(180deg, #fffdf8 0%, #f7f1e6 100%);
  border: 1px solid rgba(76, 61, 26, 0.12);
  box-shadow: 0 16px 34px rgba(43, 33, 12, 0.08);
  overflow: hidden;
}

.auth-shell__frame::before,
.auth-shell__frame::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  pointer-events: none;
}

.auth-shell__frame::before {
  top: 12px;
  right: 14px;
  border-top: 1px solid rgba(201, 168, 76, 0.75);
  border-right: 1px solid rgba(201, 168, 76, 0.75);
}

.auth-shell__frame::after {
  left: 12px;
  bottom: 12px;
  border-left: 1px solid rgba(201, 168, 76, 0.75);
  border-bottom: 1px solid rgba(201, 168, 76, 0.75);
}

.auth-shell__panel {
  position: relative;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  padding-bottom: clamp(1rem, 3vw, 1.35rem);
  border-left: 1px solid rgba(34, 27, 16, 0.1);
}

.auth-shell__panel--compact {
  max-width: none;
}

.auth-shell__brand {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(0.9rem, 3vw, 1.2rem);
}

.auth-shell__brand-logo {
  display: block;
  width: min(100%, 10.25rem);
  height: auto;
}

.auth-shell__heading {
  width: 100%;
  max-width: 34rem;
  margin-bottom: 1.15rem;
}

.auth-shell__title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em;
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.9rem, 6vw, 2.85rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #171717;
}

.auth-shell__title-accent {
  color: #c9a84c;
}

.auth-shell__subtitle {
  margin: 0.55rem 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.45;
  color: #6f7681;
}

.auth-shell__rule {
  position: relative;
  height: 1px;
  margin-bottom: clamp(1.15rem, 3vw, 1.55rem);
  background: rgba(38, 29, 14, 0.12);
}

.auth-shell__rule::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 1px;
  background: rgba(201, 168, 76, 0.92);
}

.auth-shell__body {
  width: 100%;
  max-width: 34rem;
}

.auth-shell__footer {
  width: 100%;
  max-width: 34rem;
  margin-top: clamp(1rem, 3vw, 1.35rem);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.auth-label {
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #77808d;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 3.1rem 0 0.85rem;
  border: 1px solid #d8d1c4;
  border-radius: 12px;
  background: #f8f4ec;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #161616;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-input::placeholder {
  color: #948d82;
  font-weight: 600;
}

.auth-input:focus {
  border-color: #c9a84c;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.18);
  background: #fffdfa;
  color: #161616;
}

.auth-eye-button {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.auth-eye-button:hover {
  border-color: rgba(201, 168, 76, 0.7);
  background: #fff;
}

.auth-eye-button:active {
  transform: translateY(-50%) scale(0.98);
}

.auth-eye-icon {
  width: 14px;
  height: 14px;
  opacity: 0.72;
}

.auth-feedback {
  margin-top: 0.05rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 0.25rem;
  border: 1px solid rgba(22, 22, 22, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #101010;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.auth-submit:hover:not(:disabled) {
  border-color: #c9a84c;
  background: #111;
  color: #fff;
}

.auth-submit:active:not(:disabled) {
  transform: scale(0.992);
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-submit__content,
.auth-submit__loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(0.84rem, 2vw, 0.96rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-submit__icon {
  width: 14px;
  height: 14px;
}

.auth-submit__spinner {
  width: 15px;
  height: 15px;
  animation: auth-shell-spin 1s linear infinite;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.auth-links--single {
  justify-content: flex-end;
}

.auth-link {
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #6f7681;
  text-decoration: none;
  transition: color 0.18s ease;
}

.auth-link:hover {
  color: #161616;
}

.auth-link--accent,
.auth-inline-link {
  color: #c9a84c;
}

.auth-link--accent:hover,
.auth-inline-link:hover {
  color: #a8863a;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.auth-divider__line {
  flex: 1;
  height: 1px;
  background: rgba(201, 168, 76, 0.3);
}

.auth-divider__text {
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b5a98a;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 12px;
  background: transparent;
  font-family: "Sora", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a84c;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.auth-back-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.auth-back-link:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: #c9a84c;
  color: #a8863a;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 0.1rem;
  color: #5c5f5b;
}

.auth-consent__box {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.auth-checkbox {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.auth-consent__indicator {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid #cfc5b1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.auth-consent__indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.35rem;
  height: 0.7rem;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: translate(-50%, -58%) rotate(45deg);
  transition: border-color 0.16s ease;
}

.auth-checkbox:focus-visible + .auth-consent__indicator {
  border-color: #c9a84c;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.18);
}

.auth-checkbox:checked + .auth-consent__indicator {
  border-color: #161616;
  background: #161616;
}

.auth-checkbox:checked + .auth-consent__indicator::after {
  border-right-color: #fff;
  border-bottom-color: #fff;
}

.auth-consent__text {
  font-family: "Manrope", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
  color: #5e584d;
}

.auth-inline-link {
  color: #a9872c;
  text-decoration: none;
}

.phone-input {
  position: relative;
  width: 100%;
}

.phone-input__row {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.phone-input__prefix {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.phone-input__field {
  flex: 1;
  min-width: 0;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.phone-input__flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.phone-input__chevron {
  margin-left: auto;
  font-size: 0.72rem;
  opacity: 0.65;
}

.phone-input__dropdown {
  position: absolute;
  left: 0;
  z-index: 200;
  min-width: 220px;
  overflow: hidden;
}

.phone-input__option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease;
}

.phone-input__option-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.phone-input__option-name {
  flex: 1;
}

.phone-input__option-prefix {
  opacity: 0.6;
  font-size: 0.78rem;
}

.phone-input__validation {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  line-height: 1.4;
}

.phone-input--default .phone-input__row {
  margin-top: -2px;
}

.phone-input--default .phone-input__prefix {
  height: 42px;
  padding: 0 12px;
  border: none;
  border-radius: 6px 0 0 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #bebcbc;
  font-weight: 800;
}

.phone-input--default .phone-input__field {
  height: 42px;
  margin-top: 0;
  padding: 5px 15px;
  border-radius: 0 6px 6px 0;
  font-weight: 800;
}

.phone-input--default .phone-input__dropdown {
  top: calc(100% + 4px);
  background: #1a2a32;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.phone-input--default .phone-input__option {
  padding: 10px 14px;
  background: transparent;
  color: #bebcbc;
  font-weight: 700;
}

.phone-input--default .phone-input__option:hover {
  background: rgba(255, 255, 255, 0.12);
}

.phone-input--default .phone-input__option--selected {
  background: rgba(255, 255, 255, 0.08);
}

.phone-input--auth-light .phone-input__row {
  border: 1px solid #d8d1c4;
  border-radius: 12px;
  background: #f8f4ec;
  overflow: hidden;
}

.phone-input--auth-light .phone-input__row:focus-within {
  border-color: #c9a84c;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.18);
  background: #fffdfa;
}

.phone-input--auth-light .phone-input__prefix {
  min-width: 102px;
  min-height: 48px;
  padding: 0 0.7rem 0 0.85rem;
  border: none;
  border-right: 1px solid rgba(50, 39, 19, 0.1);
  background: transparent;
  color: #171717;
  font-family: "Manrope", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}

.phone-input--auth-light .phone-input__prefix-text {
  font-size: 0.84rem;
}

.phone-input--auth-light .phone-input__field {
  height: 48px;
  padding: 0 0.85rem;
  border: none;
  margin: 0;
  background: transparent;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #161616;
}

.phone-input--auth-light .phone-input__field::placeholder {
  color: #948d82;
}

.phone-input--auth-light .phone-input__dropdown {
  top: calc(100% + 8px);
  right: 0;
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #ddd4c6;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(30, 22, 10, 0.12);
}

.phone-input--auth-light .phone-input__option {
  padding: 0.75rem 0.95rem;
  background: transparent;
  color: #1b1b1b;
  font-family: "Manrope", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}

.phone-input--auth-light .phone-input__option:hover {
  background: #f7f1e5;
}

.phone-input--auth-light .phone-input__option--selected {
  background: #f2ead6;
}

.phone-input--auth-light .phone-input__validation {
  font-family: "Manrope", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
}

@keyframes auth-shell-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .auth-shell {
    padding-inline: 0.55rem;
  }

  .auth-shell__frame {
    padding: 0.65rem;
  }

  .auth-shell__frame::before,
  .auth-shell__frame::after {
    width: 44px;
    height: 44px;
  }

  .auth-shell__frame::before {
    top: 10px;
    right: 10px;
  }

  .auth-shell__frame::after {
    left: 10px;
    bottom: 10px;
  }

  .auth-shell__panel {
    padding: 1rem 0.75rem 0.9rem;
  }

  .auth-shell__brand {
    margin-bottom: 1rem;
  }

  .auth-shell__rule::after {
    width: 72px;
  }

  .auth-input {
    height: 46px;
    padding-right: 3rem;
    border-radius: 12px;
  }

  .auth-eye-button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .auth-submit {
    min-height: 48px;
    border-radius: 12px;
  }

  .auth-submit__content,
  .auth-submit__loading {
    font-size: 0.9rem;
    letter-spacing: 0.14em;
  }

  .auth-links,
  .auth-links--single {
    justify-content: flex-start;
  }

  .auth-link {
    font-size: 0.82rem;
  }

  .phone-input--auth-light .phone-input__row {
    border-radius: 12px;
  }

  .phone-input--auth-light .phone-input__prefix {
    min-width: 92px;
    min-height: 46px;
    padding-inline: 0.7rem;
  }

  .phone-input--auth-light .phone-input__field {
    height: 46px;
    padding-inline: 0.75rem;
  }
}

@media (max-width: 540px) {
  .auth-page {
    max-width: 100%;
  }

  .auth-page .lionbets-download-banner {
    padding: 4px 8px;
    min-height: 36px;
  }

  .auth-page .lionbets-banner-text {
    font-size: 0.76rem;
  }

  .auth-page .lionbets-download-btn {
    padding: 4px 7px;
    font-size: 0.68rem;
  }

  .auth-page .dynamic-navbar-spacer {
    margin-top: 36px !important;
  }

  .auth-page__main {
    align-items: flex-start;
    padding: 0.35rem 0 1rem;
  }

  .auth-shell {
    padding: 0.45rem 0.4rem 0.9rem;
  }

  .auth-shell__frame {
    padding: 0.55rem;
    border-radius: 18px;
  }

  .auth-shell__frame::before,
  .auth-shell__frame::after {
    width: 36px;
    height: 36px;
  }

  .auth-shell__frame::before {
    top: 8px;
    right: 8px;
  }

  .auth-shell__frame::after {
    left: 8px;
    bottom: 8px;
  }

  .auth-shell__panel {
    padding: 0.9rem 0.7rem 0.8rem;
    border-left: none;
  }

  .auth-shell__brand {
    margin-bottom: 0.8rem;
  }

  .auth-shell__brand-logo {
    width: min(100%, 8.75rem);
  }

  .auth-shell__heading {
    margin-bottom: 0.9rem;
  }

  .auth-shell__title {
    gap: 0.14em;
    font-size: clamp(1.55rem, 7.6vw, 2rem);
    line-height: 1.06;
  }

  .auth-shell__subtitle {
    margin-top: 0.45rem;
    font-size: 0.83rem;
    line-height: 1.4;
  }

  .auth-shell__rule {
    margin-bottom: 1rem;
  }

  .auth-shell__rule::after {
    width: 58px;
  }

  .auth-form {
    gap: 0.8rem;
  }

  .auth-label {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .auth-input {
    height: 44px;
    padding: 0 2.85rem 0 0.75rem;
    border-radius: 11px;
    font-size: 0.9rem;
  }

  .auth-eye-button {
    right: 0.35rem;
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .auth-eye-icon {
    width: 13px;
    height: 13px;
  }

  .auth-feedback {
    font-size: 0.7rem;
  }

  .auth-submit {
    min-height: 46px;
    border-radius: 11px;
  }

  .auth-submit__content,
  .auth-submit__loading {
    gap: 0.45rem;
    font-size: 0.84rem;
    letter-spacing: 0.12em;
  }

  .auth-submit__icon,
  .auth-submit__spinner {
    width: 13px;
    height: 13px;
  }

  .auth-links,
  .auth-links--single {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .auth-link {
    width: 100%;
    font-size: 0.8rem;
  }

  .auth-consent {
    gap: 0.55rem;
  }

  .auth-consent__box {
    width: 1rem;
    height: 1rem;
  }

  .auth-consent__text {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .phone-input__flag {
    width: 16px;
    height: 12px;
  }

  .phone-input--auth-light .phone-input__row {
    border-radius: 11px;
  }

  .phone-input--auth-light .phone-input__prefix {
    min-width: 82px;
    min-height: 44px;
    padding: 0 0.55rem 0 0.7rem;
    font-size: 0.84rem;
  }

  .phone-input--auth-light .phone-input__prefix-text {
    font-size: 0.84rem;
  }

  .phone-input--auth-light .phone-input__field {
    height: 44px;
    padding: 0 0.75rem;
    font-size: 0.88rem;
  }

  .phone-input--auth-light .phone-input__option {
    padding: 0.7rem 0.8rem;
    font-size: 0.8rem;
  }

  .phone-input--auth-light .phone-input__validation {
    font-size: 0.7rem;
  }
}

@media (max-width: 380px) {
  .auth-shell {
    padding-inline: 0.25rem;
  }

  .auth-page .lionbets-banner-text {
    font-size: 0.72rem;
  }

  .auth-page .lionbets-download-btn {
    font-size: 0.64rem;
  }

  .auth-shell__frame {
    padding: 0.45rem;
    border-radius: 16px;
  }

  .auth-shell__panel {
    padding: 0.8rem 0.6rem 0.75rem;
  }

  .auth-shell__brand-logo {
    width: min(100%, 7.9rem);
  }

  .auth-shell__title {
    font-size: clamp(1.35rem, 7.2vw, 1.7rem);
  }

  .auth-shell__subtitle {
    font-size: 0.79rem;
  }

  .auth-input,
  .phone-input--auth-light .phone-input__field,
  .phone-input--auth-light .phone-input__prefix,
  .auth-submit {
    height: 42px;
    min-height: 42px;
  }

  .phone-input--auth-light .phone-input__prefix {
    min-width: 76px;
  }

  .auth-eye-button {
    width: 28px;
    height: 28px;
  }
}

@media (max-height: 740px) {
  .auth-page__main {
    align-items: flex-start;
  }

  .auth-shell {
    padding-top: 0.55rem;
    padding-bottom: 0.75rem;
  }
}
