/* Voyatale login and account creation views. Scoped to auth-v2 only. */
body.auth-page.auth-v2 {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #f8f6fa;
  color: #24152c;
}

body.auth-v2 .auth-language {
  position: fixed !important;
  top: 18px !important;
  right: 20px !important;
  left: auto !important;
  width: auto !important;
  transform: none !important;
  z-index: 10000;
}

body.auth-v2 .auth-language .langBtn {
  background: rgba(255,255,255,.92);
  border-color: rgba(89,34,103,.12);
  box-shadow: 0 8px 24px rgba(61,22,72,.08);
  backdrop-filter: blur(14px);
}

body.auth-v2 .auth-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(480px, .96fr);
  gap: 30px;
  box-sizing: border-box;
}

body.auth-v2 .auth-story {
  position: relative;
  min-height: calc(100vh - 56px);
  padding: 58px;
  overflow: hidden;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,145,20,.28), transparent 30%),
    radial-gradient(circle at 18% 84%, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(145deg, #41004e 0%, #730073 54%, #9b007f 100%);
  box-shadow: 0 24px 65px rgba(66,10,77,.18);
  box-sizing: border-box;
}

body.auth-v2 .auth-story::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -118px;
  bottom: -130px;
  border: 76px solid rgba(255,143,13,.14);
  border-radius: 50%;
}

body.auth-v2 .auth-brand-crop {
  position: relative;
  z-index: 1;
  width: 360px;
  max-width: 100%;
  height: 112px;
  overflow: hidden;
}

body.auth-v2 .auth-brand-logo {
  position: absolute;
  width: 740px;
  max-width: none;
  height: auto;
  left: -198px;
  top: -176px;
  display: block;
  pointer-events: none;
}

body.auth-v2 .auth-story-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  color: #fff;
}

body.auth-v2 .auth-story-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 4vw, 62px);
  line-height: 1.02;
  letter-spacing: -.045em;
  color: #fff;
}

body.auth-v2 .auth-story-copy p {
  max-width: 570px;
  margin: 0;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
  color: rgba(255,255,255,.86);
}

body.auth-v2 .auth-panel {
  width: 100%;
  max-width: 540px;
  margin: auto;
  padding: 64px 0 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

body.auth-v2 .auth-panel-register {
  max-width: 610px;
}

body.auth-v2 .auth-view-tabs {
  width: 100%;
  margin-bottom: 14px;
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border: 1px solid rgba(86,45,97,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 10px 28px rgba(57,25,66,.06);
  box-sizing: border-box;
}

body.auth-v2 .auth-view-tabs a {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #66596b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}

body.auth-v2 .auth-view-tabs a.is-active {
  color: #72006f;
  background: #fff;
  box-shadow: 0 5px 16px rgba(61,22,72,.10);
}

body.auth-v2 .auth-card {
  width: 100%;
  padding: 34px 36px 30px;
  border: 1px solid rgba(86,45,97,.11);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 65px rgba(61,22,72,.10);
  box-sizing: border-box;
}

body.auth-v2 .auth-card-register {
  padding-top: 30px;
}

body.auth-v2 .auth-card-head {
  margin-bottom: 26px;
}

body.auth-v2 .auth-card-head h1 {
  margin: 0 0 8px;
  color: #2b1632;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -.025em;
}

body.auth-v2 .auth-card-head p {
  margin: 0;
  color: #75687a;
  font-size: 15px;
  line-height: 1.5;
}

body.auth-v2 .auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

body.auth-v2 .auth-social-btn {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(55,37,61,.15);
  border-radius: 13px;
  background: #fff;
  color: #302535;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

body.auth-v2 .auth-social-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(114,0,111,.28);
  box-shadow: 0 10px 22px rgba(61,22,72,.08);
}

body.auth-v2 .auth-social-btn .gmark {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

body.auth-v2 .auth-divider-text {
  margin: 1px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #95899a;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

body.auth-v2 .auth-divider-text::before,
body.auth-v2 .auth-divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(86,45,97,.12);
}

body.auth-v2 .auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #3c3040;
  font-size: 13px;
  font-weight: 800;
}

body.auth-v2 .auth-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(79,58,86,.18);
  border-radius: 12px;
  outline: none;
  background: #fbfafc;
  color: #2d2231;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  box-sizing: border-box;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

body.auth-v2 .auth-input:focus {
  background: #fff;
  border-color: rgba(128,0,121,.56);
  box-shadow: 0 0 0 4px rgba(128,0,121,.09);
}

body.auth-v2 .auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #6d6072;
  font-size: 13px;
  font-weight: 700;
}

body.auth-v2 .auth-options a,
body.auth-v2 .auth-switch a,
body.auth-v2 .auth-terms-label a {
  color: #7c0077;
  text-decoration: none;
  font-weight: 850;
}

body.auth-v2 .auth-options a:hover,
body.auth-v2 .auth-switch a:hover,
body.auth-v2 .auth-terms-label a:hover {
  text-decoration: underline;
}

body.auth-v2 .auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

body.auth-v2 .auth-check input,
body.auth-v2 .auth-terms-label input {
  width: 17px;
  height: 17px;
  accent-color: #81007a;
}

body.auth-v2 .auth-primary-btn {
  width: 100%;
  min-height: 49px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(115deg, #ff7a00, #ff9c16);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(255,126,0,.22);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}

body.auth-v2 .auth-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(255,126,0,.28);
}

body.auth-v2 .auth-switch {
  margin: 2px 0 0;
  color: #766a7a;
  font-size: 13px;
  text-align: center;
}

body.auth-v2 .auth-switch a {
  margin-left: 4px;
}

body.auth-v2 .auth-mode-fieldset {
  min-width: 0;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
}

body.auth-v2 .auth-mode-fieldset legend {
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  color: #3c3040;
  font-size: 13px;
  font-weight: 850;
}

body.auth-v2 .auth-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

body.auth-v2 .auth-mode-card {
  min-width: 0;
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(79,58,86,.15);
  border-radius: 15px;
  background: #fff;
  color: #312537;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

body.auth-v2 .auth-mode-card:hover {
  transform: translateY(-1px);
  border-color: rgba(128,0,121,.3);
}

body.auth-v2 .auth-mode-card.is-active {
  border-color: #86007d;
  background: #fff8fe;
  box-shadow: 0 0 0 3px rgba(134,0,125,.08);
}

body.auth-v2 .auth-mode-icon {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255,136,0,.12);
  color: #8a007e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.auth-v2 .auth-mode-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.auth-v2 .auth-mode-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

body.auth-v2 .auth-mode-content strong {
  font-size: 13px;
  line-height: 1.25;
}

body.auth-v2 .auth-mode-content > span {
  color: #786b7d;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 650;
}

body.auth-v2 .auth-terms {
  margin-top: 1px;
}

body.auth-v2 .auth-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #6d6072;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
}

body.auth-v2 .auth-terms-label input {
  flex: 0 0 auto;
  margin: 1px 0 0;
}

body.auth-v2 .auth-small {
  min-height: 0;
  margin: 0;
  color: #776b7c;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

body.auth-v2 .auth-error {
  margin-top: 6px;
  color: #c52222;
}

@media (max-width: 1020px) {
  body.auth-v2 .auth-shell {
    grid-template-columns: minmax(0, .9fr) minmax(470px, 1.1fr);
    gap: 20px;
    padding: 20px;
  }

  body.auth-v2 .auth-story {
    min-height: calc(100vh - 40px);
    padding: 38px;
  }
}

@media (max-width: 820px) {
  body.auth-page.auth-v2 {
    background: #fff;
  }

  body.auth-v2 .auth-language {
    top: 12px !important;
    right: 12px !important;
  }

  body.auth-v2 .auth-language .langBtn .label,
  body.auth-v2 .auth-language .langBtn .caret {
    display: none;
  }

  body.auth-v2 .auth-language .langBtn {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }

  body.auth-v2 .auth-shell {
    min-height: 100dvh;
    padding: 16px 14px 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  body.auth-v2 .auth-story {
    min-height: auto;
    padding: 0 4px;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  body.auth-v2 .auth-story::after,
  body.auth-v2 .auth-story-copy {
    display: none;
  }

  body.auth-v2 .auth-brand-crop {
    width: 250px;
    height: 76px;
  }

  body.auth-v2 .auth-brand-logo {
    width: 520px;
    left: -139px;
    top: -126px;
  }

  body.auth-v2 .auth-panel,
  body.auth-v2 .auth-panel-register {
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
  }

  body.auth-v2 .auth-view-tabs {
    margin-bottom: 10px;
  }

  body.auth-v2 .auth-card {
    padding: 26px 22px 24px;
    border-radius: 20px;
    box-shadow: 0 16px 44px rgba(61,22,72,.09);
  }

  body.auth-v2 .auth-card-head {
    margin-bottom: 22px;
  }

  body.auth-v2 .auth-card-head h1 {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  body.auth-v2 .auth-mode-grid {
    grid-template-columns: 1fr;
  }

  body.auth-v2 .auth-mode-card {
    min-height: auto;
  }
}

@media (max-width: 390px) {
  body.auth-v2 .auth-card {
    padding: 24px 17px 22px;
  }

  body.auth-v2 .auth-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
