body.wvt-auth-open {
  overflow: hidden;
}

.wvt-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.wvt-auth-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.wvt-auth-modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 520px);
  width: min(100%, 980px);
  height: min(calc(100dvh - 52px), 860px);
  min-height: 0;
  margin: auto;
  overflow: hidden;
  align-items: stretch;
  border: 1px solid rgba(225, 6, 0, 0.16);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 245, 242, 0.99) 100%);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.28);
}

.wvt-auth-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.wvt-auth-modal__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.wvt-auth-aside {
  display: grid;
  gap: 32px;
  min-height: 0;
  overflow-y: auto;
  padding: 42px 34px 36px;
  background:
    radial-gradient(circle at top left, rgba(244, 195, 22, 0.18), transparent 30%),
    linear-gradient(180deg, #121212 0%, #2b0000 54%, #e10600 100%);
  color: var(--wvt-white);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.wvt-auth-aside__brand {
  display: grid;
  gap: 14px;
}

.wvt-auth-aside__brand img {
  width: 172px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.wvt-auth-aside__logo-text {
  display: inline-flex;
  width: max-content;
  min-height: 52px;
  align-items: center;
  padding: 0 18px;
  border-radius: 16px;
  background: #fff;
  color: var(--wvt-red);
  font-family: "Sora", sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.wvt-auth-aside__eyebrow,
.wvt-auth-view__eyebrow {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wvt-auth-aside h2,
.wvt-auth-view h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.08;
}

.wvt-auth-aside h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
}

.wvt-auth-aside p,
.wvt-auth-benefit p,
.wvt-auth-view__head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.wvt-auth-benefits {
  display: grid;
  gap: 14px;
}

.wvt-auth-benefit {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.wvt-auth-benefit__icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(244, 195, 22, 0.18);
  color: #fff;
}

.wvt-auth-benefit__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.wvt-auth-benefit strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.wvt-auth-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 34px 24px 30px 34px;
  scrollbar-gutter: stable;
}

.wvt-auth-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  padding: 6px;
  border-radius: 999px;
  background: rgba(225, 6, 0, 0.08);
}

.wvt-auth-tabs__button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--wvt-text-soft);
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.wvt-auth-tabs__button.is-active {
  background: linear-gradient(135deg, var(--wvt-brand) 0%, var(--wvt-brand-strong) 100%);
  color: var(--wvt-white);
  box-shadow: 0 14px 30px rgba(225, 6, 0, 0.22);
}

.wvt-auth-alert {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 0.96rem;
  font-weight: 600;
}

.wvt-auth-alert--error {
  background: rgba(217, 63, 33, 0.1);
  color: #912b16;
}

.wvt-auth-alert--success {
  background: rgba(31, 138, 91, 0.12);
  color: #196946;
}

.wvt-auth-view {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-top: 24px;
  padding-right: 10px;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(225, 6, 0, 0.28) transparent;
}

.wvt-auth-view.is-active {
  display: block;
}

.wvt-auth-view__head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.wvt-auth-view__eyebrow {
  color: var(--wvt-brand);
}

.wvt-auth-view h3 {
  color: var(--wvt-text);
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
}

.wvt-auth-view__head p {
  color: var(--wvt-text-soft);
}

.wvt-auth-social {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.wvt-auth-google-button {
  display: grid;
  min-height: 44px;
  justify-items: stretch;
}

.wvt-auth-google-button__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--wvt-text-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.wvt-auth-google-button.is-error .wvt-auth-google-button__status {
  border-color: rgba(225, 6, 0, 0.2);
  background: rgba(225, 6, 0, 0.06);
  color: var(--wvt-brand);
}

.wvt-auth-google-button > div,
.wvt-auth-google-button iframe {
  width: 100% !important;
}

.wvt-auth-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
}

.wvt-auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid rgba(225, 6, 0, 0.12);
}

.wvt-auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: rgba(246, 245, 242, 0.98);
  color: var(--wvt-text-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.wvt-auth-form {
  display: grid;
  gap: 16px;
}

.wvt-auth-grid {
  display: grid;
  gap: 14px;
}

.wvt-auth-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wvt-auth-field {
  display: grid;
  gap: 8px;
}

.wvt-auth-field label {
  color: var(--wvt-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.wvt-auth-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--wvt-text);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.wvt-auth-field input[readonly] {
  color: var(--wvt-text-soft);
  background: rgba(244, 237, 229, 0.96);
  cursor: default;
}

.wvt-auth-field input:focus {
  border-color: rgba(225, 6, 0, 0.42);
  background: var(--wvt-white);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.08);
}

.wvt-auth-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wvt-auth-row--between {
  justify-content: space-between;
}

.wvt-auth-checklist {
  display: grid;
  gap: 12px;
}

.wvt-auth-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--wvt-text-soft);
  font-size: 0.88rem;
}

.wvt-auth-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--wvt-brand);
}

.wvt-auth-check a,
.wvt-auth-inline-link {
  color: var(--wvt-brand);
  font-weight: 700;
}

.wvt-auth-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.wvt-auth-submit {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--wvt-brand) 0%, var(--wvt-brand-strong) 100%);
  color: var(--wvt-white);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(225, 6, 0, 0.2);
}

.wvt-auth-submit:hover {
  transform: translateY(-1px);
}

.wvt-auth-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  color: var(--wvt-text-soft);
}

.wvt-auth-aside::-webkit-scrollbar,
.wvt-auth-view::-webkit-scrollbar,
.wvt-auth-modal::-webkit-scrollbar {
  width: 10px;
}

.wvt-auth-aside::-webkit-scrollbar-thumb,
.wvt-auth-view::-webkit-scrollbar-thumb,
.wvt-auth-modal::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(225, 6, 0, 0.2);
}

.wvt-auth-aside::-webkit-scrollbar-track,
.wvt-auth-view::-webkit-scrollbar-track,
.wvt-auth-modal::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 1080px) {
  .wvt-auth-modal__dialog {
    grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  }

  .wvt-auth-aside h2 {
    font-size: clamp(1.8rem, 4vw, 2.35rem);
  }
}

@media (max-width: 920px) {
  .wvt-auth-modal {
    padding: 18px;
  }

  .wvt-auth-modal__dialog {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .wvt-auth-aside {
    gap: 22px;
    padding-right: 72px;
    overflow: visible;
  }

  .wvt-auth-panel,
  .wvt-auth-view {
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .wvt-auth-modal {
    padding: 12px;
    align-items: start;
  }

  .wvt-auth-modal__dialog {
    width: 100%;
    border-radius: 26px;
  }

  .wvt-auth-modal__close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .wvt-auth-aside,
  .wvt-auth-panel {
    padding: 24px 18px 20px;
  }

  .wvt-auth-aside {
    gap: 16px;
    padding-right: 56px;
  }

  .wvt-auth-aside__brand {
    gap: 10px;
  }

  .wvt-auth-aside__brand img {
    width: 142px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .wvt-auth-aside__logo-text {
    min-height: 46px;
    font-size: 1.08rem;
  }

  .wvt-auth-aside h2 {
    font-size: 1.38rem;
  }

  .wvt-auth-aside p,
  .wvt-auth-benefit p,
  .wvt-auth-view__head p {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .wvt-auth-benefits {
    gap: 8px;
  }

  .wvt-auth-benefit {
    grid-template-columns: 42px 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .wvt-auth-benefit__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .wvt-auth-view {
    padding-right: 0;
  }

  .wvt-auth-divider span {
    font-size: 0.84rem;
  }

  .wvt-auth-grid--2 {
    grid-template-columns: 1fr;
  }

  .wvt-auth-row--between {
    flex-direction: column;
    align-items: stretch;
  }

  .wvt-auth-submit {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .wvt-auth-modal {
    padding: 8px;
  }

  .wvt-auth-modal__dialog {
    border-radius: 22px;
  }

  .wvt-auth-aside,
  .wvt-auth-panel {
    padding: 22px 16px 18px;
  }

  .wvt-auth-aside {
    padding-right: 54px;
  }

  .wvt-auth-benefits {
    display: none;
  }

  .wvt-auth-tabs {
    padding: 5px;
  }

  .wvt-auth-tabs__button {
    min-height: 46px;
  }
}

@media (max-height: 820px) and (min-width: 921px) {
  .wvt-auth-modal {
    padding: 18px;
  }

  .wvt-auth-modal__dialog {
    height: calc(100dvh - 36px);
  }

  .wvt-auth-aside {
    padding: 30px 24px 26px;
    gap: 22px;
  }

  .wvt-auth-benefit {
    padding: 14px;
  }
}
