:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg-navy: #031230;
  --bg-blue: #072f8d;
  --bg-bright: #1186ff;
  --line-soft: rgba(175, 214, 255, 0.18);
  --line-card: rgba(110, 201, 255, 0.42);
  --text-white: #ffffff;
  --text-soft: #d2e1fb;
  --text-muted: #6f7e9f;
  --text-dark: #173274;
  --primary: #116af3;
  --primary-strong: #0b5fe6;
  --danger: #e35a5a;
  --focus: rgba(17, 106, 243, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg-navy);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.login-page-root {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 38%, rgba(22, 105, 255, 0.24), transparent 34%),
    radial-gradient(circle at 88% 32%, rgba(46, 157, 255, 0.3), transparent 28%),
    linear-gradient(120deg, var(--bg-navy) 10%, var(--bg-blue) 58%, var(--bg-bright) 100%);
}

.login-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.9;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 52px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, 0.92fr);
  gap: 54px;
  align-items: center;
}

.login-showcase {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(300px, 360px);
  grid-template-areas:
    "brand scene"
    "copy scene"
    "benefits scene";
  column-gap: 56px;
  row-gap: 30px;
  align-content: start;
  align-items: start;
}

.login-brand {
  grid-area: brand;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: min(100%, 360px);
  min-height: 98px;
}

.login-brand-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-brand__static {
  width: 100%;
  max-width: 322px;
  height: auto;
  display: block;
  opacity: 1;
  transition: opacity 200ms ease;
}

.login-brand__video {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  max-width: 322px;
  height: 62px;
  opacity: 0;
  transform: translateY(-50%) scale(1.75) translateZ(0);
  object-fit: cover;
  object-position: center;
  filter: url(#login-black-to-alpha);
  background: transparent;
  transition: opacity 220ms ease;
}

.login-brand.is-video-ready .login-brand__static {
  opacity: 0;
}

.login-brand.is-video-ready .login-brand__video {
  opacity: 1;
}

.login-showcase__copy {
  grid-area: copy;
  width: min(100%, 560px);
  display: grid;
  gap: 18px;
}

.login-badge {
  width: fit-content;
  min-height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(12, 66, 164, 0.54);
  border: 1px solid rgba(112, 193, 255, 0.26);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.login-badge svg {
  display: none;
}

.login-showcase__title {
  margin: 0;
  color: var(--text-white);
  font-size: clamp(34px, 3.08vw, 52px);
  line-height: 1.14;
  font-weight: 850;
  letter-spacing: 0;
  text-wrap: balance;
}

.login-showcase__title span {
  color: #49b7ff;
}

.login-showcase__subtitle {
  margin: 0;
  width: min(100%, 560px);
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.68;
}

.login-benefits {
  grid-area: benefits;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 640px);
}

.login-benefit {
  display: grid;
  align-content: start;
  gap: 12px;
  color: var(--text-soft);
}

.login-benefit strong {
  color: var(--text-white);
  font-size: 18px;
  line-height: 1.2;
}

.login-benefit p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
}

.login-benefit__icon {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(90, 178, 255, 0.34);
  background: rgba(8, 52, 132, 0.42);
  color: #55b9ff;
  box-shadow: 0 0 26px rgba(62, 159, 255, 0.16);
}

.login-benefit__icon svg {
  width: 28px;
  height: 28px;
}

.login-float-scene {
  grid-area: scene;
  position: relative;
  inset: auto;
  align-self: center;
  justify-self: end;
  width: 420px;
  height: 640px;
  margin-top: 38px;
  pointer-events: none;
}

.login-float-card {
  position: absolute;
  border-radius: 22px;
  border: 1px solid var(--line-card);
  background: linear-gradient(180deg, rgba(9, 60, 166, 0.34), rgba(6, 42, 118, 0.24));
  box-shadow:
    0 0 30px rgba(62, 164, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(14px);
  color: var(--text-white);
}

.login-float-card strong,
.login-float-card span,
.login-float-card b,
.login-float-card em {
  position: relative;
  z-index: 1;
}

.login-float-card strong {
  display: block;
  font-size: 21px;
  line-height: 1.2;
}

.login-float-card span {
  display: block;
  margin-top: 8px;
  color: #cbddff;
  font-size: 13px;
  line-height: 1.5;
}

.login-float-card--cnis {
  top: 16px;
  right: 12px;
  width: 154px;
  min-height: 144px;
  padding: 18px 18px 16px;
}

.login-float-card__chart {
  margin-top: 18px;
  width: 100%;
  height: auto;
  color: #90deff;
}

.login-float-card--analysis {
  top: 212px;
  right: 0;
  width: 230px;
  min-height: 148px;
  padding: 18px;
}

.login-float-card__metric {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-float-card__metric b {
  font-size: 42px;
  line-height: 1;
}

.login-float-card__metric em {
  color: #5fe39d;
  font-style: normal;
  font-size: 22px;
  font-weight: 800;
}

.login-float-bars {
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 54px;
}

.login-float-bars i {
  width: 12px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #3c9eff, #136cff);
}

.login-float-bars i:nth-child(1) { height: 18px; }
.login-float-bars i:nth-child(2) { height: 24px; }
.login-float-bars i:nth-child(3) { height: 34px; }
.login-float-bars i:nth-child(4) { height: 44px; }
.login-float-bars i:nth-child(5) { height: 52px; }

.login-float-card--report {
  top: 468px;
  left: 56px;
  width: 150px;
  min-height: 140px;
  padding: 18px;
}

.login-float-card__doc {
  margin-top: 18px;
  width: 54px;
  height: 54px;
  color: #79c8ff;
}

.login-float-card__doc svg {
  width: 100%;
  height: 100%;
}

.login-float-node {
  position: absolute;
  background: #e5fbff;
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(96, 206, 255, 0.85);
}

.login-float-node--top {
  width: 10px;
  height: 10px;
  top: 106px;
  right: 90px;
}

.login-float-node--mid {
  width: 10px;
  height: 10px;
  top: 276px;
  right: 150px;
}

.login-float-node--bottom {
  width: 10px;
  height: 10px;
  top: 496px;
  right: 180px;
}

.login-float-scene::before,
.login-float-scene::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, rgba(140, 225, 255, 0.92), rgba(140, 225, 255, 0.4));
  box-shadow: 0 0 18px rgba(103, 207, 255, 0.45);
}

.login-float-scene::before {
  width: 2px;
  height: 190px;
  top: 118px;
  right: 146px;
}

.login-float-scene::after {
  width: 2px;
  height: 86px;
  top: 352px;
  right: 182px;
}

.login-panel {
  display: grid;
  justify-items: end;
  min-width: 0;
}

.login-form {
  width: min(100%, 594px);
  min-width: 0;
}

.login-card {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 42px 54px 34px;
  border-radius: 30px;
  background: rgba(251, 253, 255, 0.98);
  border: 1px solid rgba(227, 234, 248, 0.92);
  box-shadow:
    0 32px 80px rgba(1, 17, 51, 0.24),
    0 0 52px rgba(42, 134, 255, 0.16);
}

.login-contact-button {
  position: absolute;
  top: 22px;
  right: 24px;
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(49, 112, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 255, 0.92));
  color: #164da8;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(17, 65, 148, 0.1);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.login-contact-button:hover {
  transform: translateY(-1px);
  border-color: rgba(49, 112, 255, 0.34);
  color: #0d5be0;
  box-shadow: 0 16px 34px rgba(17, 65, 148, 0.14);
}

.login-card__brand {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  min-height: 78px;
}

.login-card__brand-static {
  width: min(100%, 300px);
  height: auto;
  display: block;
  opacity: 1;
  transition: opacity 200ms ease;
}

.login-card__brand-video {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, 300px);
  height: 72px;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: translate(-50%, -50%);
  filter: url(#login-white-to-alpha);
  transition: opacity 220ms ease;
}

.login-card__brand.is-video-ready .login-card__brand-static {
  opacity: 0;
}

.login-card__brand.is-video-ready .login-card__brand-video {
  opacity: 1;
}

.login-card__title {
  margin: 0;
  text-align: center;
  color: var(--text-dark);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 850;
}

.login-card__subtitle {
  margin: 10px 0 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.45;
}

.login-form__grid {
  display: grid;
  gap: 16px;
}

.login-field-group {
  display: grid;
  gap: 10px;
}

.login-label {
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 700;
}

.login-input-shell {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d6e0f4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-input-shell--focused,
.login-input-shell:focus-within {
  border-color: #166eff;
  box-shadow: 0 0 0 4px var(--focus);
}

.login-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #243a71;
  font-size: 16px;
  font-weight: 500;
}

.login-input::placeholder {
  color: #91a0bb;
}

.login-eye-button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7486a8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.login-eye-icon {
  width: 20px;
  height: 20px;
}

.login-helper {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

.auth-errors {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(227, 90, 90, 0.24);
  background: rgba(255, 241, 241, 0.96);
  color: #b63c3c;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.auth-errors ul,
.field-errors ul {
  margin: 0;
  padding-left: 18px;
}

.field-errors {
  color: #b63c3c;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.login-actions {
  display: grid;
  gap: 14px;
  margin-top: 2px;
}

.login-actions--meta,
.login-remember,
.login-remember__input,
.login-remember__box,
.login-remember__label {
  display: none;
}

.login-link {
  width: fit-content;
  color: #166eff;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.login-link:hover {
  color: #0d5be0;
}

.login-submit {
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(17, 106, 243, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 22px 38px rgba(17, 106, 243, 0.28);
}

.login-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  box-shadow: none;
}

.login-divider {
  margin: 26px 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #7786a8;
}

.login-divider span {
  flex: 1;
  height: 1px;
  background: #dce4f5;
}

.login-divider b {
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
}

.login-google-button {
  min-height: 54px;
  border-radius: 12px;
  border: 1px solid #d6e0f4;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #153374;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.login-google-button:hover {
  transform: translateY(-1px);
  border-color: #c2d1ee;
  box-shadow: 0 14px 24px rgba(13, 38, 86, 0.08);
}

.login-google-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.login-create-account {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 6px;
  color: #67789b;
  font-size: 14px;
  line-height: 1.5;
}

.login-security {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #e3eaf8;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #6e7e9f;
  font-size: 14px;
  line-height: 1.5;
}

.login-security svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.login-security i {
  font-style: normal;
}

@media (max-width: 1180px) {
  .login-shell {
    padding: 34px 24px;
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
  }

  .login-showcase {
    min-height: auto;
    width: min(100%, 760px);
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "copy"
      "benefits"
      "scene";
    row-gap: 28px;
    justify-items: center;
    text-align: center;
  }

  .login-brand {
    justify-content: center;
    text-align: center;
  }

  .login-showcase__copy,
  .login-showcase__subtitle,
  .login-benefits {
    width: 100%;
  }

  .login-float-scene {
    position: relative;
    inset: auto;
    width: min(100%, 420px);
    height: 660px;
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
  }

  .login-panel {
    width: min(100%, 594px);
    justify-items: center;
  }
}

@media (max-width: 1460px) and (min-width: 1181px) {
  .login-shell {
    grid-template-columns: minmax(0, 1fr) minmax(500px, 0.9fr);
    gap: 34px;
    padding: 42px 36px;
  }

  .login-showcase {
    min-height: 700px;
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 24px;
    row-gap: 24px;
  }

  .login-showcase__copy {
    width: min(100%, 470px);
  }

  .login-brand {
    width: min(100%, 470px);
    min-height: 126px;
  }

  .login-brand__video {
    max-width: 322px;
    height: 62px;
    transform: translateY(-50%) scale(1.68) translateZ(0);
  }

  .login-showcase__title {
    font-size: clamp(31px, 2.75vw, 42px);
  }

  .login-showcase__subtitle {
    width: min(100%, 470px);
    font-size: 16px;
  }

  .login-benefits {
    width: min(100%, 520px);
    gap: 18px;
  }

  .login-benefit strong {
    font-size: 17px;
  }

  .login-benefit p {
    font-size: 14px;
  }

  .login-float-scene {
    width: 520px;
    height: 560px;
    margin-top: 18px;
  }

  .login-float-card--cnis {
    top: 8px;
    right: 24px;
    width: 154px;
    min-height: 138px;
    padding: 16px;
  }

  .login-float-card--analysis {
    top: 176px;
    right: 34px;
    width: 208px;
    min-height: 134px;
    padding: 16px;
  }

  .login-float-card--report {
    top: 390px;
    left: 160px;
    width: 136px;
    min-height: 124px;
    padding: 14px;
  }

  .login-float-card strong {
    font-size: 18px;
  }

  .login-float-card span {
    margin-top: 6px;
    font-size: 11px;
  }

  .login-float-card__metric {
    margin-top: 14px;
  }

  .login-float-card__metric b {
    font-size: 36px;
  }

  .login-float-card__metric em {
    font-size: 18px;
  }

  .login-float-bars {
    gap: 6px;
    height: 44px;
  }

  .login-float-bars i {
    width: 10px;
  }

  .login-float-card__doc {
    margin-top: 14px;
    width: 42px;
    height: 42px;
  }

  .login-float-node--top {
    top: 108px;
    right: 104px;
  }

  .login-float-node--mid {
    top: 248px;
    right: 188px;
  }

  .login-float-node--bottom {
    top: 420px;
    right: 228px;
  }

  .login-float-scene::before {
    height: 146px;
    top: 112px;
    right: 184px;
  }

  .login-float-scene::after {
    height: 78px;
    top: 324px;
    right: 232px;
  }
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .login-shell {
    padding: 22px 16px 28px;
    width: 100%;
  }

  .login-showcase {
    display: none;
  }

  .login-panel {
    width: 100%;
    max-width: 460px;
  }

  .login-form {
    width: 100%;
    max-width: 100%;
  }

  .login-card {
    width: 100%;
    max-width: 100%;
    padding: 30px 22px 24px;
    border-radius: 24px;
  }

  .login-contact-button {
    top: 16px;
    right: 16px;
    min-height: 34px;
    padding: 0 13px;
    font-size: 13px;
  }

  .login-brand {
    width: min(72vw, 322px);
    min-height: 92px;
  }

  .login-brand__video {
    max-width: 322px;
    height: 62px;
    transform: translateY(-50%) scale(1.6) translateZ(0);
  }

  .login-card__brand-static {
    width: min(100%, 256px);
  }

  .login-card__brand-video {
    width: min(100%, 256px);
    height: 62px;
  }

  .login-card__title {
    font-size: 28px;
  }

  .login-card__subtitle {
    margin-bottom: 24px;
  }

  .login-create-account,
  .login-security {
    flex-wrap: wrap;
    text-align: center;
  }

  .login-google-button,
  .login-submit,
  .login-input-shell {
    min-height: 52px;
  }
}
