/* ============================================
   Block: auth — вход / регистрация / восстановление
   ============================================ */

.b-auth {
  padding: 48px 0 72px;
  background: var(--bg, #F7F3EC);
  color: var(--text, #3B3437);
  font-family: 'Manrope', sans-serif;
}

.b-auth__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

/* --- Основная карточка --- */

.b-auth__main {
  background: var(--surface, #FDFBF7);
  border: 1px solid var(--line, #E4DCD2);
  border-radius: 16px;
  padding: 32px;
}

.b-auth__tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2, #F1EBE2);
  border-radius: 8px;
  margin-bottom: 28px;
}

.b-auth__tab {
  flex: 1;
  padding: 11px 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted, #8A7F7A);
  cursor: pointer;
  transition: background .2s, color .2s;
}

.b-auth__tab:hover {
  color: var(--text, #3B3437);
}

.b-auth__tab.is-active {
  background: var(--surface, #FDFBF7);
  color: var(--accent, #6E5A7E);
  box-shadow: 0 1px 4px rgba(59, 52, 55, .08);
}

/* Панели */

.b-auth__panel {
  display: none;
}

.b-auth__panel.is-active {
  display: block;
}

.b-auth__panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
}

.b-auth__panel-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #8A7F7A);
  margin: 0 0 20px;
}

.b-auth__field {
  margin-bottom: 16px;
}

.b-auth__row {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 18px;
}

.b-auth__forgot,
.b-auth__back {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--accent, #6E5A7E);
  cursor: pointer;
}

.b-auth__forgot:hover,
.b-auth__back:hover {
  color: var(--accent-hover, #5C4B6B);
  text-decoration: underline;
}

.b-auth__back {
  display: block;
  margin: 14px auto 0;
}

.b-auth__submit {
  width: 100%;
}

/* Чекбокс согласия */

.b-auth__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, #8A7F7A);
  cursor: pointer;
  margin-bottom: 20px;
}

.b-auth__check a {
  color: var(--accent, #6E5A7E);
}

.b-auth__check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.b-auth__check-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid var(--line, #E4DCD2);
  border-radius: 4px;
  background: var(--surface, #FDFBF7);
  position: relative;
  transition: background .2s, border-color .2s;
}

.b-auth__check-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.b-auth__check input:checked + .b-auth__check-box {
  background: var(--accent, #6E5A7E);
  border-color: var(--accent, #6E5A7E);
}

.b-auth__check input:checked + .b-auth__check-box::after {
  opacity: 1;
}

/* --- Боковая панель --- */

.b-auth__aside {
  background: var(--lavender-soft, #E9E1EF);
  border-radius: 16px;
  padding: 28px;
}

.b-auth__aside-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 18px;
}

.b-auth__bonuses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.b-auth__bonus {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.b-auth__bonus-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface, #FDFBF7);
  color: var(--accent, #6E5A7E);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.b-auth__bonus strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.b-auth__bonus small {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted, #8A7F7A);
}

/* --- Адаптив --- */

@media (max-width: 768px) {
  .b-auth {
    padding: 32px 0 56px;
  }

  .b-auth__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .b-auth__main {
    padding: 20px;
  }

  .b-auth__aside {
    padding: 20px;
  }
}
