body.auth-page {
  min-height: 100vh;
  margin: 0;
  background: #111312;
  color: #f3f6f4;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(500px, 39%) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  background: #111312;
}

.auth-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 30px 32px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-brand,
.auth-footer,
.auth-aside-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f3f6f4;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.auth-brand .brand-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.auth-top-link {
  display: none;
  color: #a4aca7;
  font-size: 13px;
  text-decoration: none;
}

.auth-content {
  width: min(100%, 384px);
  align-self: center;
  justify-self: center;
  padding: 54px 0;
}

.auth-heading {
  margin-bottom: 38px;
}

.auth-heading h1 {
  margin: 0 0 7px;
  color: #f3f6f4;
  font-size: clamp(26px, 3vw, 31px);
  font-weight: 660;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.auth-heading p {
  margin: 0;
  color: #a3aaa6;
  font-size: 14px;
  line-height: 1.5;
}

.auth-card {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.auth-card h2,
.auth-card > .sub {
  display: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: #a3aaa6;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.13);
  content: "";
}

.auth-card .field {
  margin-bottom: 18px;
}

.auth-card .field-label {
  margin-bottom: 8px;
  color: #e5e9e6;
  font-size: 13px;
  font-weight: 550;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-label-row .field-label {
  margin-bottom: 8px;
}

.auth-card .field-input {
  min-height: 44px;
  padding: 10px 12px;
  color: #eef3ef;
  background: #121413;
  border: 1px solid #303532;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: none;
}

.auth-card .field-input::placeholder {
  color: #7f8983;
  opacity: 1;
}

.auth-card .field-input:focus {
  border-color: #49ff88;
  box-shadow: 0 0 0 3px rgba(73, 255, 136, 0.13);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap .field-input {
  padding-right: 48px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  color: #98a19b;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transform: translateY(-50%);
}

.auth-password-toggle:hover {
  color: #f3f6f4;
  background: rgba(255, 255, 255, 0.07);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid #49ff88;
  outline-offset: 2px;
}

.auth-password-toggle svg {
  width: 17px;
  height: 17px;
}

.auth-inline-link,
.auth-aux a,
.auth-switch a,
.auth-legal a {
  color: #dfe5e1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-inline-link {
  margin: 0 0 8px;
  color: #a3aaa6;
  font-size: 12.5px;
  text-decoration: none;
}

.auth-inline-link:hover,
.auth-aux a:hover,
.auth-switch a:hover,
.auth-legal a:hover {
  color: #49ff88;
}

.auth-card .btn-primary {
  min-height: 44px;
  margin-top: 8px;
  color: #062313;
  background: #00c767;
  border: 1px solid #19d875;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
}

.auth-card .btn-primary:hover:not(:disabled) {
  background: #16da79;
}

.auth-card .btn-primary:disabled {
  opacity: 0.62;
}

.auth-aux,
.auth-switch {
  color: #b8bfba;
  text-align: center;
}

.auth-aux {
  margin: 18px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
}

.auth-aux + .auth-aux {
  margin-top: 8px;
}

.auth-switch {
  margin: 24px 0 0;
  font-size: 13px;
}

.auth-msg {
  margin: 0 0 16px;
}

.auth-card .form-msg:not(.show) {
  display: none;
}

.auth-footer {
  align-items: flex-end;
  gap: 18px;
  color: #818a84;
  font-size: 11.5px;
  line-height: 1.55;
}

.auth-legal {
  max-width: 360px;
  margin: 0;
}

.auth-legal a {
  color: #a9b1ac;
}

.auth-footer #langSwitch {
  flex: 0 0 auto;
}

.auth-footer .ws-lang-select {
  padding: 6px 9px;
  font-size: 11.5px;
}

.auth-aside {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 30px 34px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(23, 66, 43, 0.24), transparent 35%),
    #111312;
}

.auth-aside::before,
.auth-aside::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(48vw, 590px);
  aspect-ratio: 1;
  border: 1px solid rgba(73, 255, 136, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.auth-aside::after {
  width: min(34vw, 410px);
  border-color: rgba(73, 255, 136, 0.07);
}

.auth-aside-top {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
}

.auth-aside-top a {
  padding: 7px 11px;
  color: #d6ddd8;
  background: #1b1e1c;
  border: 1px solid #303532;
  border-radius: 7px;
  font-size: 12px;
  text-decoration: none;
}

.auth-aside-top a:hover {
  border-color: rgba(73, 255, 136, 0.42);
}

.auth-aside-content {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(100%, 550px);
  padding: 48px 24px;
}

.auth-aside-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  place-items: center;
  color: #49ff88;
  background: rgba(73, 255, 136, 0.09);
  border: 1px solid rgba(73, 255, 136, 0.2);
  border-radius: 15px;
  box-shadow: 0 0 56px rgba(73, 255, 136, 0.1);
}

.auth-aside-mark svg {
  width: 24px;
  height: 24px;
}

.auth-aside-content h2 {
  max-width: 520px;
  margin: 0;
  color: #f0f4f1;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 610;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.auth-aside-content h2 span {
  color: #49ff88;
}

.auth-aside-content p {
  max-width: 440px;
  margin: 18px 0 0;
  color: #9da7a0;
  font-size: 15px;
  line-height: 1.75;
}

.auth-aside-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #77817a;
  font-size: 12px;
}

.auth-aside-foot span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-aside-foot span:first-child::before {
  width: 7px;
  height: 7px;
  background: #49ff88;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(73, 255, 136, 0.8);
  content: "";
}

@media (max-width: 1020px) {
  .auth-layout {
    grid-template-columns: minmax(460px, 48%) minmax(0, 1fr);
  }

  .auth-main {
    padding-right: 28px;
    padding-left: 28px;
  }

  .auth-aside {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 900px) {
  .auth-layout {
    display: block;
  }

  .auth-main {
    min-height: 100vh;
    min-height: 100svh;
    padding: 22px 24px 18px;
    border-right: 0;
  }

  .auth-top-link {
    display: inline-block;
  }

  .auth-content {
    width: min(100%, 420px);
    padding: 44px 0;
  }

  .auth-heading {
    margin-bottom: 30px;
  }

  .auth-aside {
    display: none;
  }
}

@media (max-width: 420px) {
  .auth-main {
    padding-right: 18px;
    padding-left: 18px;
  }

  .auth-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .auth-aside-mark {
    animation: auth-mark-glow 5s ease-in-out infinite alternate;
  }

  @keyframes auth-mark-glow {
    from { box-shadow: 0 0 28px rgba(73, 255, 136, 0.06); }
    to { box-shadow: 0 0 68px rgba(73, 255, 136, 0.15); }
  }
}
