.login-screen {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: #fff;
}
.login-story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px clamp(32px, 5vw, 80px) 28px;
  color: white;
  background:
    radial-gradient(ellipse at 0 0, #7161be 0, transparent 60%),
    linear-gradient(145deg, #46388e, #262044);
}
.login-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: white;
}
.login-brand img {
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 5px;
}
.login-brand strong {
  display: block;
  font:
    800 18px/1.4 Arial,
    sans-serif;
  letter-spacing: -0.4px;
}
.login-brand small {
  display: block;
  margin-top: 4px;
  font:
    600 9px/1.5 Arial,
    sans-serif;
  letter-spacing: 2px;
  opacity: 0.7;
}
.login-story-copy {
  margin: clamp(44px, 8vh, 88px) 0 32px;
}
.login-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font:
    600 10px/1.5 Arial,
    sans-serif;
  letter-spacing: 2px;
  color: #d6cef9;
}
.login-tag span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c3b5ff;
}
.login-story h2 {
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -1px;
  margin: 18px 0 12px;
}
.login-story h2 > span {
  color: #b8a6ff;
}
.login-story-copy p {
  color: #d3cce8;
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}
.login-visual {
  position: relative;
  margin: auto 0 28px;
  border: 1px solid #ffffff26;
  border-radius: 20px;
  overflow: hidden;
  min-height: 190px;
}
.login-visual > img {
  display: block;
  width: 100%;
  height: clamp(190px, 26vh, 290px);
  object-fit: cover;
}
.login-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, #211a42e8);
}
.login-visual figcaption {
  position: absolute;
  z-index: 1;
  left: 24px;
  bottom: 22px;
  right: 20px;
}
.login-visual figcaption span {
  display: block;
  font:
    500 9px/1.5 Arial,
    sans-serif;
  letter-spacing: 2px;
  color: #ded7f3;
  margin-bottom: 7px;
}
.login-visual figcaption strong {
  font-size: 15px;
  font-weight: 500;
}
.login-story-footer {
  font:
    500 9px/1.5 Arial,
    sans-serif;
  letter-spacing: 1.4px;
  color: #b1a7ce;
  margin: 0;
}
.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 64px 40px 28px;
  min-width: 0;
}
.login-card {
  width: 100%;
  max-width: 390px;
  margin: auto;
}
.login-emblem {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 26px;
}
.login-emblem svg {
  width: 25px;
  height: 25px;
}
.login-eyebrow {
  color: var(--brand);
  font:
    700 10px/1.5 Arial,
    sans-serif;
  letter-spacing: 2.5px;
  margin: 0 0 12px;
}
.login-card h1 {
  font-size: 34px;
  line-height: 1.4;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
  color: var(--text);
}
.login-intro {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 32px;
}
.login-field {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 22px 0 9px;
}
.login-input-wrap {
  position: relative;
}
.login-input-wrap > svg {
  position: absolute;
  left: 16px;
  top: 17px;
  width: 19px;
  height: 19px;
  color: #9a93b0;
  pointer-events: none;
}
.login-input-wrap input {
  width: 100%;
  height: 54px;
  padding: 0 48px;
  border: 1px solid #e1ddec;
  background: #fcfbfe;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.login-input-wrap input::placeholder {
  color: #aaa4b9;
  font-size: 13px;
}
.login-input-wrap input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #4b3d9814;
  background: white;
}
.login-password-toggle {
  display: grid;
  place-items: center;
  position: absolute;
  right: 4px;
  top: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8b839f;
  cursor: pointer;
}
.login-password-toggle:hover {
  color: var(--brand);
  background: var(--brand-soft);
}
.login-password-toggle svg {
  width: 20px;
  height: 20px;
}
.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 28px;
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 16px #4b3d9824;
  cursor: pointer;
}
.login-submit:hover {
  background: var(--brand-deep);
}
.login-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.login-submit svg {
  width: 19px;
  height: 19px;
}
.login-screen button:focus-visible,
.login-brand:focus-visible {
  outline: 3px solid #a796f0;
  outline-offset: 3px;
}
.login-error {
  color: #af303b;
  background: #fff2f3;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.7;
}
.login-hint {
  margin: 22px 0 0;
  text-align: center;
  color: #8d859d;
  font-size: 11px;
  line-height: 1.9;
}
.login-hint strong {
  font-weight: 500;
  color: #6f6584;
}
.login-support {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: #a29aaf;
  font-size: 11px;
}
.login-footer {
  padding-top: 40px;
  color: #aaa3b6;
  font-size: 10px;
}
@media (max-width: 860px) {
  .login-story {
    padding: 36px 28px 24px;
  }
  .login-form-panel {
    padding-left: 28px;
    padding-right: 28px;
  }
  .login-story h2 {
    font-size: 28px;
  }
  .login-brand strong {
    font-size: 15px;
  }
}
@media (max-width: 560px) {
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 25px 24px 28px;
  }
  .login-story-copy {
    margin: 24px 0 0;
  }
  .login-story h2 {
    font-size: 24px;
    margin: 10px 0 0;
  }
  .login-story-copy > p,
  .login-visual,
  .login-story-footer {
    display: none;
  }
  .login-form-panel {
    padding: 30px 24px 20px;
  }
  .login-emblem {
    display: none;
  }
  .login-card h1 {
    font-size: 28px;
  }
  .login-intro {
    margin-bottom: 24px;
  }
  .login-footer {
    padding-top: 28px;
  }
}
