.av2-shell,
.av2-shell * {
  box-sizing: border-box;
}

.av2-shell {
  --av2-forest: #0b3b35;
  --av2-forest-2: #145348;
  --av2-forest-3: #1d7564;
  --av2-coral: #fa6b4e;
  --av2-coral-dark: #dd4e34;
  --av2-blue: #1f62d9;
  --av2-gold: #f4bd42;
  --av2-cream: #f6efe3;
  --av2-paper: #fffdf9;
  --av2-ink: #102e2b;
  --av2-muted: #647773;
  --av2-line: #d9e1dc;
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 92px);
  padding: clamp(34px, 5vw, 76px) 24px;
  overflow: hidden;
  color: var(--av2-ink);
  background:
    radial-gradient(circle at 11% 18%, rgba(244, 189, 66, .22), transparent 26%),
    radial-gradient(circle at 91% 83%, rgba(31, 98, 217, .11), transparent 25%),
    linear-gradient(135deg, #fbf7ef 0%, var(--av2-cream) 54%, #eef3ec 100%);
  font-family: "Catamaran", "Avenir Next", sans-serif;
}

.av2-shell::before,
.av2-shell::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(11, 59, 53, .12);
  border-radius: 999px;
  pointer-events: none;
}

.av2-shell::before {
  width: 360px;
  height: 360px;
  top: -210px;
  right: 8%;
}

.av2-shell::after {
  width: 240px;
  height: 240px;
  bottom: -145px;
  left: 4%;
}

.av2-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(520px, 1.12fr);
  width: min(1120px, 100%);
  overflow: hidden;
  border: 1px solid rgba(11, 59, 53, .14);
  border-radius: 30px;
  background: var(--av2-paper);
  box-shadow:
    0 36px 90px rgba(16, 46, 43, .15),
    0 10px 30px rgba(16, 46, 43, .08);
}

.av2-shell--login .av2-card {
  min-height: 610px;
}

.av2-shell--register {
  align-items: flex-start;
}

.av2-shell--register .av2-card {
  width: min(1180px, 100%);
  grid-template-columns: minmax(370px, .82fr) minmax(590px, 1.18fr);
}

.av2-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
  padding: clamp(48px, 6vw, 78px);
  border: 0;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .035) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(135deg, var(--av2-forest) 0%, #0c4740 100%);
}

.av2-brand::before {
  position: absolute;
  content: "";
  width: 330px;
  height: 330px;
  right: -205px;
  top: -145px;
  border: 38px solid rgba(244, 189, 66, .12);
  border-radius: 50%;
}

.av2-brand::after {
  position: absolute;
  content: "";
  width: 210px;
  height: 210px;
  left: -130px;
  bottom: -130px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
}

.av2-brand__illu {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin: 0 0 34px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--av2-blue), #2f80ed);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .19);
}

.av2-brand__illu svg {
  width: 30px;
  height: 30px;
}

.av2-brand__title {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: 0 0 14px;
  color: #fff !important;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.35rem, 3.4vw, 3.8rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}

.av2-brand__sub {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: 0 0 38px;
  color: rgba(255, 255, 255, .78) !important;
  font-size: 1.06rem;
  line-height: 1.55;
}

.av2-brand__feats {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
}

.av2-brand__feat {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .9) !important;
  font-size: .96rem;
  font-weight: 600;
}

.av2-brand__dot {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.av2-brand__dot svg {
  width: 14px;
  height: 14px;
}

.av2-dot--blue {
  color: #145fc6;
  background: #e4efff;
}

.av2-dot--green {
  color: #107054;
  background: #dff7ec;
}

.av2-dot--yellow {
  color: #8c5d00;
  background: #fff0bd;
}

.av2-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(42px, 5vw, 68px);
  background:
    radial-gradient(circle at 100% 0, rgba(31, 98, 217, .045), transparent 30%),
    var(--av2-paper);
}

.av2-shell--register .av2-form-side {
  justify-content: flex-start;
  padding-top: 42px;
  padding-bottom: 42px;
}

.av2-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: flex-start;
  min-width: 250px;
  margin: 0 0 28px;
  padding: 5px;
  border: 1px solid #e1e8e4;
  border-radius: 999px;
  background: #eff4f1;
}

.av2-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 999px;
  color: #536b66 !important;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none !important;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.av2-tab:hover {
  color: var(--av2-forest) !important;
}

.av2-tab--active {
  color: var(--av2-forest) !important;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 46, 43, .09);
}

.av2-h1 {
  margin: 0 0 7px;
  color: var(--av2-ink) !important;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
}

.av2-lead {
  margin: 0 0 26px;
  color: var(--av2-muted) !important;
  font-size: 1rem;
  line-height: 1.5;
}

.av2-social {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.av2-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--av2-line);
  border-radius: 13px;
  color: var(--av2-ink) !important;
  background: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.av2-social__btn:hover {
  transform: translateY(-2px);
  border-color: #b8c9c2;
  box-shadow: 0 10px 22px rgba(16, 46, 43, .08);
}

.av2-social__btn svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.av2-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: #7c8d89;
  font-size: .78rem;
  font-weight: 700;
}

.av2-divider::before,
.av2-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--av2-line);
}

.av2-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.av2-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.av2-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.av2-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 7px;
  color: #294a45 !important;
  font-size: .82rem;
  font-weight: 800;
}

.av2-label__link {
  color: var(--av2-blue) !important;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none !important;
}

.av2-label__link:hover {
  text-decoration: underline !important;
}

.av2-input-wrap {
  position: relative;
}

.av2-input-wrap > .av2-input-icon {
  position: absolute;
  z-index: 1;
  width: 18px;
  height: 18px;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #78908b;
  pointer-events: none;
}

.av2-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 44px;
  border: 1px solid #cfdad5;
  border-radius: 13px;
  outline: none;
  color: var(--av2-ink) !important;
  background: #fff !important;
  font: inherit;
  font-size: .98rem;
  box-shadow: 0 1px 1px rgba(16, 46, 43, .02);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.av2-input::placeholder {
  color: #8a9b97;
  opacity: 1;
}

.av2-input:hover {
  border-color: #afc2ba;
}

.av2-input:focus {
  border-color: var(--av2-blue);
  box-shadow: 0 0 0 4px rgba(31, 98, 217, .12);
}

.av2-input--error {
  border-color: #c83e34 !important;
}

.av2-eye-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  color: #617570;
  background: transparent;
  cursor: pointer;
}

.av2-eye-btn:hover {
  color: var(--av2-forest);
  background: #edf3f0;
}

.av2-eye-btn svg {
  width: 19px;
  height: 19px;
}

.av2-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #435e59 !important;
  font-size: .88rem;
  line-height: 1.45;
  cursor: pointer;
}

.av2-check input[type="checkbox"] {
  position: static !important;
  display: inline-block !important;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  opacity: 1 !important;
  visibility: visible !important;
  accent-color: var(--av2-forest-3);
  appearance: auto !important;
}

.av2-check a,
.av2-check__links a {
  color: var(--av2-blue) !important;
}

.av2-check__links {
  display: block;
  margin-top: 3px;
  font-size: .8rem;
}

.av2-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 3px 0 0;
  padding: 13px 22px;
  border: 0;
  border-radius: 14px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--av2-coral), #f45c3d);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(250, 107, 78, .24);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.av2-submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #f76245, var(--av2-coral-dark));
  box-shadow: 0 18px 34px rgba(221, 78, 52, .28);
}

.av2-submit:focus-visible,
.av2-social__btn:focus-visible,
.av2-tab:focus-visible,
.av2-eye-btn:focus-visible,
.av2-details summary:focus-visible {
  outline: 3px solid rgba(31, 98, 217, .3);
  outline-offset: 3px;
}

.av2-foot {
  margin: 10px 0 0;
  color: var(--av2-muted) !important;
  font-size: .9rem;
  text-align: center;
}

.av2-foot a,
.av2-foot button {
  padding: 0;
  border: 0;
  color: var(--av2-blue) !important;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}

.av2-foot a:hover,
.av2-foot button:hover {
  text-decoration: underline !important;
}

.av2-details {
  margin-top: -3px;
}

.av2-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 0;
  color: #516b66;
  font-size: .84rem;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}

.av2-details summary::-webkit-details-marker {
  display: none;
}

.av2-details summary::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  content: "+";
  color: var(--av2-blue);
  background: #eaf1ff;
}

.av2-details[open] summary::before {
  content: "−";
}

.av2-verification-block {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(300px, 1.3fr);
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 15px 17px;
  border: 1px solid #d9e2de;
  border-radius: 15px;
  background: #f5f8f6;
}

.av2-step-title {
  margin: 0;
  color: var(--av2-ink) !important;
  font-size: .84rem;
  font-weight: 850;
  line-height: 1.3;
}

.av2-captcha {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  margin: 0;
}

.av2-error,
.av2-captcha__error {
  margin: 5px 0 0;
  color: #b42318;
  font-size: .8rem;
  line-height: 1.4;
}

.av2-captcha__error,
.av2-error--center {
  grid-column: 1 / -1;
  text-align: center;
}

.av2-strength {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  height: 4px;
  margin-top: 7px;
}

.av2-strength span {
  border-radius: 4px;
  background: #dfe7e3;
}

.av2-strength.is-weak span:first-child {
  background: #e14f42;
}

.av2-strength.is-medium span:nth-child(-n+2) {
  background: var(--av2-gold);
}

.av2-strength.is-strong span {
  background: #2aa876;
}

.av2-help {
  margin: 6px 0 0;
  color: #71847f;
  font-size: .76rem;
  line-height: 1.35;
}

html[dir="rtl"] .av2-input-wrap > .av2-input-icon {
  right: 15px;
  left: auto;
}

html[dir="rtl"] .av2-input {
  padding-right: 44px;
  padding-left: 44px;
}

html[dir="rtl"] .av2-eye-btn {
  right: auto;
  left: 10px;
}

@media (max-width: 980px) {
  .av2-shell {
    min-height: calc(100svh - 76px);
    padding: 30px 18px 48px;
  }

  .av2-card,
  .av2-shell--register .av2-card {
    grid-template-columns: minmax(280px, .78fr) minmax(460px, 1.22fr);
    border-radius: 25px;
  }

  .av2-brand {
    padding: 44px 34px;
  }

  .av2-brand__title {
    font-size: 2.5rem;
  }

  .av2-form-side,
  .av2-shell--register .av2-form-side {
    padding: 38px 34px;
  }
}

@media (max-width: 820px) {
  .av2-card,
  .av2-shell--register .av2-card {
    display: block;
    width: min(620px, 100%);
    min-height: 0;
  }

  .av2-brand {
    display: none;
  }

  .av2-form-side,
  .av2-shell--register .av2-form-side {
    padding: 38px;
  }
}

@media (max-width: 560px) {
  .av2-shell {
    align-items: flex-start;
    padding: 18px 12px 36px;
  }

  .av2-card,
  .av2-shell--register .av2-card {
    border-radius: 20px;
  }

  .av2-form-side,
  .av2-shell--register .av2-form-side {
    padding: 26px 20px 28px;
  }

  .av2-tabs {
    width: 100%;
    margin-bottom: 24px;
  }

  .av2-h1 {
    font-size: 2.15rem;
  }

  .av2-social {
    grid-template-columns: 1fr;
  }

  .av2-social__btn {
    min-height: 48px;
  }

  .av2-row {
    grid-template-columns: 1fr;
  }

  .av2-verification-block {
    display: block;
  }

  .av2-step-title {
    margin-bottom: 12px;
  }

  .av2-captcha {
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .av2-shell *,
  .av2-shell *::before,
  .av2-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
