/* Сеттинг — страницы входа, регистрации, подтверждения почты и восстановления пароля.
   Подключается после base.css; body.client даёт цвета и шрифт как у лендинга. */

body.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 480px at 12% -8%, #e2f3eb, transparent 60%),
    radial-gradient(700px 420px at 100% 100%, #edf3f0, transparent 60%),
    #f7f9f8;
}

.auth-top {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.auth-logo .brand-mark {
  font-size: 18px;
}

.auth-logo .brand-note {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #6d7773;
}

.auth-switch {
  font-size: 13px;
  color: #6d7773;
}

.auth-switch a {
  color: #111916;
  font-weight: 700;
  text-decoration: none;
  margin-left: 6px;
  padding: 10px 14px;
  border: 1px solid #e4ebe7;
  border-radius: 12px;
  background: #fff;
}

.auth-switch a:hover {
  border-color: #c9d6cf;
}

.auth-main {
  flex: 1;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 48px;
  display: grid;
  gap: 28px;
  align-items: center;
  justify-content: center;
  grid-template-columns: minmax(0, 440px);
}

.auth-main.split {
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  justify-content: stretch;
}

.auth-card {
  background: #fff;
  border: 1px solid #e4ebe7;
  border-radius: 24px;
  padding: 34px 34px 28px;
  box-shadow: 0 30px 90px rgba(21, 59, 44, 0.1);
}

.auth-card h1 {
  font-size: 30px;
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: -0.05em;
}

.auth-card .lede {
  color: #6d7773;
  font-size: 14px;
  margin: 0 0 22px;
}

.auth-card form {
  display: grid;
  gap: 2px;
}

.auth-card label {
  margin: 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: #34403b;
}

.auth-card input:not([type="checkbox"]) {
  font-size: 16px;
  min-height: 50px;
  border-radius: 13px;
  border-color: #dfe7e3;
  background: #fbfcfc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.auth-card input:not([type="checkbox"]):focus,
.auth-card input:not([type="checkbox"]):focus-visible {
  outline: none;
  border-color: #23865f;
  background: #fff;
  box-shadow: 0 0 0 4px #23865f1f;
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.field-row a {
  font-size: 12px;
  font-weight: 600;
  color: #1d6b48;
  text-decoration: none;
}

.pass-wrap {
  position: relative;
  display: block;
}

.pass-wrap input {
  width: 100%;
  padding-right: 92px;
}

.pass-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #1d6b48;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 10px;
  border-radius: 9px;
  cursor: pointer;
}

.pass-toggle:hover {
  background: #e2f3eb;
}

.auth-card .btn.wide {
  width: 100%;
  margin-top: 14px;
  min-height: 52px;
  font-size: 15px;
  border-radius: 14px;
}

.auth-card .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.auth-card .error,
.auth-card .ok {
  font-size: 13px;
  margin: 8px 0 0;
  min-height: 0;
}

.auth-card .error:empty,
.auth-card .ok:empty {
  display: none;
}

.auth-card .error {
  color: #a23a2c;
  background: #fbefec;
  border-radius: 12px;
  padding: 10px 12px;
}

.auth-card .ok {
  color: #1d6b48;
  background: #e2f3eb;
  border-radius: 12px;
  padding: 10px 12px;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  font-size: 12px;
  color: #8a938f;
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4ebe7;
}

.auth-providers {
  display: grid;
  gap: 10px;
}

.provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid #e0e7e3;
  border-radius: 14px;
  background: #fff;
  color: #111916 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.provider-btn:hover {
  border-color: #c3d1ca;
  background: #fbfcfc;
}

.provider-btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.auth-legal {
  font-size: 12px;
  color: #8a938f;
  margin: 16px 0 0;
  line-height: 1.5;
}

.auth-legal a,
.auth-foot a {
  color: #1d6b48;
}

.auth-foot {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid #eef2f0;
  font-size: 14px;
  color: #6d7773;
  text-align: center;
}

.auth-foot a {
  font-weight: 700;
  text-decoration: none;
}

/* Правая часть страницы регистрации */
.auth-aside {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 44px 44px 40px;
  background: #123b2d;
  color: #e9f3ee;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-aside::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -140px;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, #23865f88, transparent 70%);
  pointer-events: none;
}

.auth-aside .tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: #123b2d;
  background: #bfe6d3;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 18px;
}

.auth-aside h2 {
  color: #fff;
  font-size: 32px;
  line-height: 1.12;
  margin: 0 0 26px;
  letter-spacing: -0.05em;
  max-width: 13em;
}

.auth-aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.auth-aside li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  color: #c9ddd3;
}

.auth-aside li strong {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 2px;
}

.auth-aside li i {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #ffffff14;
  display: grid;
  place-items: center;
  font-style: normal;
}

.auth-aside li svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #9fdcbf;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-aside .note {
  position: relative;
  z-index: 1;
  margin: 28px 0 0;
  font-size: 13px;
  color: #9fbfb0;
}

/* Экраны-сообщения (почта подтверждена, письмо отправлено) */
.auth-state {
  text-align: center;
}

.auth-state .state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #e2f3eb;
}

.auth-state .state-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #1d6b48;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-state.bad .state-icon {
  background: #fbefec;
}

.auth-state.bad .state-icon svg {
  stroke: #a23a2c;
}

.auth-state .btn.wide {
  margin-top: 22px;
}

.auth-bottom {
  text-align: center;
  font-size: 12px;
  color: #8a938f;
  padding: 0 20px 24px;
}

.auth-bottom a {
  color: inherit;
  margin: 0 8px;
}

@media (max-width: 900px) {
  .auth-main.split {
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
  }

  .auth-aside {
    display: none;
  }
}

@media (max-width: 560px) {
  .auth-top {
    width: calc(100% - 32px);
    min-height: 64px;
  }

  .auth-logo .brand-mark {
    font-size: 16px;
  }

  .auth-logo .brand-note {
    display: none;
  }

  .auth-switch span {
    display: none;
  }

  .auth-main {
    width: calc(100% - 24px);
    padding: 8px 0 28px;
    align-items: start;
  }

  .auth-card {
    padding: 26px 20px 22px;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(21, 59, 44, 0.08);
  }

  .auth-card h1 {
    font-size: 26px;
  }
}

.auth-card a.btn,
.auth-card a.btn:visited {
  color: #fff;
  text-decoration: none;
}
