/* ==========================================================================
   Login / register — split screen (dark promo panel + form)
   ========================================================================== */

body.page-auth-split {
  background: #F5FAF7;
}
body.page-auth-split .shell-head,
body.page-auth-split .nav-overlay,
body.page-auth-split .ai-floating-button,
body.page-auth-split .ai-assistant-widget {
  display: none !important;
}
body.page-auth-split .site-shell,
body.page-auth-split .shell-main {
  display: block;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  max-width: none;
}

.as-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  font-family: var(--font-body, 'Manrope', sans-serif);
  color: #0B2A1F;
}

/* ── Promo panel ── */
.as-promo {
  background: #0B2A1F;
  color: #FFFFFF;
  padding: 40px clamp(32px, 4.5vw, 64px) 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
}
.as-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  text-decoration: none;
  align-self: flex-start;
}
.as-brand:hover { color: #FFFFFF; }
.as-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.as-brand__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-brand__name {
  font-family: var(--font-display, 'Unbounded', sans-serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.as-brand__name span { color: #FACC15; }

.as-promo__body {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
}
.as-promo__title {
  margin: 0;
  font-family: var(--font-display, 'Unbounded', sans-serif);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.as-promo__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #B9D8C9;
  max-width: 470px;
}

.as-promo__cards {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}
.as-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 400px;
  box-sizing: border-box;
}
.as-card--offset { margin-left: 40px; width: 100%; max-width: 420px; }
.as-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.as-card__icon--green { background: #0E9F6E; color: #FFFFFF; }
.as-card__icon--yellow { background: #FACC15; color: #0B2A1F; }
.as-card__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex-grow: 1; }
.as-card__text strong { font-size: 15px; font-weight: 800; color: #FFFFFF; }
.as-card__text small { font-size: 13px; color: #B9D8C9; }
.as-card__badge {
  padding: 4px 9px;
  border-radius: 8px;
  background: #FACC15;
  color: #0B2A1F;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.as-card__bar {
  display: block;
  height: 6px;
  margin-top: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.as-card__bar span { display: block; height: 100%; border-radius: 99px; background: #0E9F6E; }

.as-steps {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.as-step { display: flex; align-items: flex-start; gap: 14px; }
.as-step__num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #FACC15;
  color: #0B2A1F;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.as-step__text { display: flex; flex-direction: column; gap: 3px; }
.as-step__text strong { font-size: 16px; font-weight: 800; color: #FFFFFF; }
.as-step__text small { font-size: 14px; color: #B9D8C9; }

.as-langs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #7FA593;
}
.as-langs__btn {
  background: none;
  border: 0;
  padding: 2px 0;
  font: inherit;
  color: #7FA593;
  cursor: pointer;
}
.as-langs__btn:hover,
.as-langs__btn.is-active { color: #FFFFFF; }

/* ── Form side ── */
.as-main {
  background: #F5FAF7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(24px, 5vw, 72px);
  box-sizing: border-box;
}
.as-mtop { display: none; }
.as-mlogo { display: none; }
.as-form-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.as-title {
  margin: 0;
  font-family: var(--font-display, 'Unbounded', sans-serif);
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0B2A1F;
}
.as-sub {
  margin: 8px 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: #4A6358;
}

.as-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #DCEAE2;
  color: #0B2A1F;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.as-google:hover { border-color: #0B7F58; color: #0B2A1F; background: #FFFFFF; }

.as-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 12px;
  color: #5C766A;
}
.as-divider::before,
.as-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #DCEAE2;
}

.as-form { display: flex; flex-direction: column; gap: 16px; }
.as-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.as-field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.as-label {
  font-size: 13px;
  font-weight: 800;
  color: #0B2A1F;
}
.as-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #DCEAE2;
  background: #FFFFFF;
  color: #0B2A1F;
  font: 600 15px var(--font-body, 'Manrope', sans-serif);
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.as-input::placeholder { color: #8AA396; font-weight: 500; }
.as-input:focus {
  border-color: #0E9F6E;
  box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.15);
}
.as-form .pwd-field { position: relative; display: block; }
.as-form .pwd-field .as-input { padding-right: 48px; }
.as-form .pwd-field__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4A6358;
  cursor: pointer;
}
.as-form .pwd-field__toggle:hover { background: #EEF4F0; color: #0B2A1F; }

.as-criteria {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.as-criteria .pwd-criteria__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #5C766A;
}
.as-criteria .pwd-criteria__item::before,
.as-criteria .pwd-criteria__item--ok::before {
  content: "";
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .45;
}
.as-criteria .pwd-criteria__item--ok { color: #0B2A1F; }
.as-criteria .pwd-criteria__item--ok::before { color: #0B7F58; opacity: 1; }

.as-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #4A6358;
  cursor: pointer;
}
.as-consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #0B7F58;
}
.as-consent a { color: #0B7F58; font-weight: 800; }

.as-err { margin: 0; }

.as-submit {
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: #0B7F58;
  color: #FFFFFF;
  font: 800 16px var(--font-body, 'Manrope', sans-serif);
  cursor: pointer;
  transition: background .15s ease;
}
.as-submit:hover { background: #075C40; }
.as-submit:disabled { opacity: .6; cursor: not-allowed; }

.as-switch {
  margin: 4px 0 0;
  text-align: center;
  font-size: 14px;
  color: #4A6358;
}
.as-switch a { color: #0B7F58; font-weight: 800; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .as-page { grid-template-columns: 1fr; }
  .as-promo { display: none; }
  .as-main {
    justify-content: flex-start;
    padding: 14px 20px 32px;
    min-height: 100vh;
  }
  .as-mtop {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
  }
  .as-mtop__back {
    width: 40px;
    height: 40px;
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B2A1F;
    border-radius: 10px;
  }
  .as-mtop__title { font-size: 17px; font-weight: 800; color: #0B2A1F; flex-grow: 1; }
  .as-mtop__lang { margin-left: auto; position: relative; }
  .as-mtop__lang summary {
    list-style: none;
    min-width: 40px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid #DCEAE2;
    background: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
  }
  .as-mtop__lang summary::-webkit-details-marker { display: none; }
  .as-mtop__menu {
    position: absolute;
    right: 0;
    top: 42px;
    z-index: 5;
    min-width: 140px;
    padding: 6px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #DCEAE2;
    box-shadow: 0 12px 32px rgba(11, 42, 31, 0.1);
    display: flex;
    flex-direction: column;
  }
  .as-mtop__menu button {
    text-align: left;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font: 700 14px var(--font-body, 'Manrope', sans-serif);
    color: #0B2A1F;
    cursor: pointer;
  }
  .as-mtop__menu button:hover,
  .as-mtop__menu button.is-active { background: #E3F4EC; color: #075C40; }
  .as-mlogo {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
  }
  .as-mlogo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .as-title { font-size: 28px; }
  .as-sub { margin-bottom: 18px; }
  .as-row { grid-template-columns: 1fr; gap: 16px; }
  .as-criteria { display: grid; grid-template-columns: 1fr 1fr; }
  .as-switch { margin-top: 12px; }
}
