:root {
  --gauth-bg: #e9edf2;
  --gauth-surface: #f5f8fc;
  --gauth-card: #ffffff;
  --gauth-text: #0f172a;
  --gauth-muted: #5f6b7e;
  --gauth-border: #cfdae8;
  --gauth-primary: #0f2a57;
  --gauth-primary-soft: #2e4f88;
  --gauth-ok: #1f7a53;
  --gauth-shadow: 0 20px 45px rgba(16, 32, 58, 0.12);
  --gauth-wrap: min(1140px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

.public-body {
  margin: 0;
  color: var(--gauth-text);
  background:
    radial-gradient(1200px 440px at 12% 8%, rgba(255, 255, 255, 0.54) 0%, rgba(255, 255, 255, 0) 66%),
    radial-gradient(1100px 430px at 90% 20%, rgba(196, 214, 236, 0.38) 0%, rgba(196, 214, 236, 0) 70%),
    linear-gradient(180deg, #e7edf4 0%, #e4ebf2 44%, #e9eff5 100%);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lp-wrap {
  width: var(--gauth-wrap);
  margin-inline: auto;
}

.lp-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

.lp-header__inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.lp-header__menu-toggle {
  display: none;
  border: 1px solid #c8d4e4;
  background: linear-gradient(180deg, #f8fbff 0%, #e8f0fb 100%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 10px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.lp-header__menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #2c4566;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.lp-header__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(13, 23, 38, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lp-no-scroll {
  overflow: hidden;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.lp-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7d7d7;
}

.lp-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lp-brand__name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lp-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.lp-nav a {
  text-decoration: none;
  color: #232323;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 6px 10px;
  border-radius: 999px;
}

.lp-nav a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.gauth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(16px, 3vw, 40px) 0 clamp(40px, 6vw, 86px);
}

.gauth-main {
  width: var(--gauth-wrap);
  margin: 0 auto;
}

.gauth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 440px);
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
}

.gauth-intro,
.gauth-card {
  border-radius: 18px;
  border: 1px solid var(--gauth-border);
  box-shadow: var(--gauth-shadow);
}

.gauth-intro {
  background: linear-gradient(165deg, #f3f8ff 0%, #e8f1fd 52%, #edf4ff 100%);
  color: #1a3357;
  border-color: #c7d7eb;
  padding: clamp(22px, 4vw, 34px);
}

.gauth-kicker {
  margin: 0;
  color: #345b8f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gauth-title {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.gauth-subtitle {
  margin: 14px 0 0;
  max-width: 58ch;
  color: #365072;
  line-height: 1.58;
}

.gauth-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.gauth-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.45;
  color: #365072;
}

.gauth-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #4f78ad;
}

.gauth-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #c7d8ef;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
  color: #355177;
}

.gauth-card {
  background: linear-gradient(180deg, var(--gauth-card) 0%, #f9fbff 100%);
  padding: clamp(20px, 3vw, 30px);
}

.gauth-card--compact {
  max-width: 460px;
  margin: 0 auto;
}

.gauth-main--compact {
  max-width: 560px;
}

.gauth-card__head {
  margin-bottom: 16px;
}

.gauth-card__brand {
  margin: 0;
  color: var(--gauth-primary-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gauth-card__title {
  margin: 7px 0 0;
  font-size: clamp(1.42rem, 2.2vw, 1.92rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.gauth-card__subtitle {
  margin: 10px 0 0;
  color: var(--gauth-muted);
  line-height: 1.48;
}

.gauth-alert {
  margin: 0 0 14px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.4;
}

.gauth-form {
  display: grid;
  gap: 9px;
}

.gauth-form label {
  margin-top: 3px;
  font-size: 0.8rem;
  color: #334155;
  font-weight: 700;
}

.gauth-field {
  position: relative;
}

.gauth-field i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a8ba6;
  font-size: 0.86rem;
  pointer-events: none;
}

.gauth-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #ced7e4;
  border-radius: 10px;
  background: #ffffff;
  padding: 0 12px 0 35px;
  color: #0f172a;
}

.gauth-field input::placeholder {
  color: #98a6bb;
}

.gauth-field input:focus {
  border-color: #2f5fa8;
  box-shadow: 0 0 0 3px rgba(49, 98, 171, 0.15);
  outline: none;
}

.gauth-submit,
.gauth-button-muted {
  margin-top: 10px;
  height: 44px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.gauth-submit {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #214d90 0%, #18396c 100%);
}

.gauth-submit:hover {
  filter: brightness(1.04);
}

.gauth-inline-form {
  margin: 10px 0 0;
}

.gauth-button-muted {
  width: 100%;
  border: 1px solid #cdd8e7;
  color: #213a61;
  background: #f3f7fd;
}

.gauth-button-muted:hover {
  border-color: #aec2dd;
  background: #ebf2fb;
}

.gauth-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e1e7f1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.gauth-actions a {
  color: #2d568f;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.gauth-actions a:hover {
  text-decoration: underline;
}

.lp-footer {
  width: 100%;
  background: #f0f2f4;
  border-top: 1px solid #d7dce3;
  margin-top: 0;
  padding: 28px 0 14px;
}

.lp-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.lp-footer__grid article {
  display: grid;
  gap: 7px;
  align-content: start;
}

.lp-footer__grid h3,
.lp-footer__grid h4 {
  margin: 0;
  color: #1f2c3f;
}

.lp-footer__grid h3 {
  font-size: 2rem;
  line-height: 1;
}

.lp-footer__grid h4 {
  font-size: 1.05rem;
}

.lp-footer__grid p {
  margin: 0;
  color: #616a76;
  line-height: 1.5;
}

.lp-footer__grid a {
  color: #4a5464;
  text-decoration: none;
}

.lp-footer__grid a:hover {
  color: #1f2c3f;
}

.lp-footer__social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

.lp-footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d4d4d4;
  display: grid;
  place-items: center;
  color: #787878;
}

.lp-footer__copy {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #d8d8d8;
}

.lp-footer__copy p {
  margin: 0;
  color: #6e737a;
  font-size: 13px;
}

@media (max-width: 980px) {
  .gauth-shell {
    grid-template-columns: 1fr;
  }

  .gauth-card--compact {
    max-width: none;
  }

  .lp-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .lp-wrap {
    width: min(1140px, calc(100% - 24px));
  }

  .lp-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 41;
    width: min(84vw, 300px);
    height: 100dvh;
    padding: 84px 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-y: auto;
    background: linear-gradient(180deg, #f5f9ff 0%, #ecf3fd 100%);
    border-left: 1px solid #c8d9ed;
    box-shadow: -20px 0 34px rgba(17, 31, 52, 0.2);
    transform: translateX(104%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  .lp-nav a {
    padding: 10px 11px;
    border: 1px solid #d6e3f3;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
  }

  .lp-header__inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 0;
  }

  .lp-header__menu-toggle {
    display: inline-flex;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 42;
  }

  .lp-header__backdrop {
    display: block;
    z-index: 40;
  }

  .lp-header.is-menu-open .lp-header__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .lp-header.is-menu-open .lp-nav {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .lp-header.is-menu-open .lp-header__menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .lp-header.is-menu-open .lp-header__menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .lp-header.is-menu-open .lp-header__menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .lp-brand {
    gap: 8px;
  }

  .lp-brand__mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .lp-brand__name {
    font-size: clamp(1.1rem, 4.4vw, 1.32rem);
  }

  .gauth-page {
    min-height: auto;
    display: block;
    padding-top: 10px;
  }

  .gauth-main {
    width: min(1140px, calc(100% - 20px));
  }

  .gauth-intro,
  .gauth-card {
    border-radius: 14px;
    padding: 16px;
  }

  .gauth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-footer__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
