.login-page {
  display: grid;
  grid-template-columns:
    minmax(390px, 520px)
    minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.login-panel {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding:
    clamp(
      32px,
      5vw,
      72px
    );
  border-right:
    1px solid
    var(--border-strong);
  background: #ffffff;
}

.login-panel__content {
  width: 100%;
  max-width: 390px;
  animation:
    login-panel-enter
    520ms
    cubic-bezier(
      .2,
      .75,
      .25,
      1
    )
    both;
}

.login-brand {
  display: flex;
  width: 100%;
  min-height: 82px;
  align-items: center;
  margin-bottom: 50px;
}

.login-brand__logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}

.login-heading > span,
.login-information__eyebrow {
  display: block;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.login-heading h1 {
  margin:
    10px
    0
    8px;
  color: var(--text);
  font-size:
    clamp(
      38px,
      5vw,
      52px
    );
  line-height: 1;
  letter-spacing: -.04em;
}

.login-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

.form-field__control {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.form-field__control > svg {
  position: absolute;
  left: 14px;
  z-index: 2;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-field input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding:
    0
    16px
    0
    44px;
  border:
    1px solid
    var(--border-strong);
  border-radius: 11px;
  outline: 0;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.form-field input::placeholder {
  color: #969287;
}

.form-field input:hover {
  border-color: #a9a38f;
}

.form-field input:focus {
  border-color: var(--accent-dark);
  background: var(--accent-softer);
  box-shadow:
    0
    0
    0
    3px
    rgba(
      182,
      155,
      69,
      .13
    );
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  z-index: 3;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.password-toggle:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

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

.login-error {
  padding: 12px 14px;
  border: 1px solid #d6a9a7;
  border-radius: 9px;
  background: #fff4f3;
  color: #8f302d;
  font-size: 12px;
  line-height: 1.5;
  animation:
    login-error-enter
    180ms
    ease
    both;
}

.login-submit {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding:
    0
    18px;
  border:
    1px solid
    var(--accent-dark);
  border-radius: 11px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    opacity 160ms ease;
}

.login-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.login-submit:active {
  transform: translateY(0);
}

.login-submit:disabled {
  opacity: .72;
}

.login-submit > svg {
  width: 18px;
  height: 18px;
}

.login-submit.is-loading > svg {
  display: none;
}

.login-submit__spinner {
  width: 18px;
  height: 18px;
  border:
    2px solid
    rgba(
      255,
      255,
      255,
      .45
    );
  border-top-color: #ffffff;
  border-radius: 50%;
  animation:
    login-spin
    680ms
    linear
    infinite;
}

.login-access {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding:
    12px
    14px;
  border:
    1px solid
    var(--border);
  border-radius: 11px;
  background: var(--accent-softer);
}

.login-access div {
  min-width: 0;
}

.login-access span,
.login-access strong {
  display: block;
}

.login-access span {
  color: var(--text-muted);
  font-size: 10px;
}

.login-access strong {
  overflow: hidden;
  margin-top: 3px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-access > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--accent-dark);
}

.login-footer {
  margin:
    30px
    0
    0;
  color: var(--text-muted);
  font-size: 10px;
  text-align: center;
  letter-spacing: .05em;
}

.login-information {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  align-items: stretch;
  padding:
    clamp(
      48px,
      6vw,
      96px
    );
  background:
    linear-gradient(
      145deg,
      #fffef9
      0%,
      #f8f3df
      48%,
      #f2ebcd
      100%
    );
}

.login-information::before {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 430px;
  height: 430px;
  border:
    1px solid
    rgba(
      136,
      116,
      47,
      .14
    );
  border-radius: 50%;
  content: "";
  animation:
    login-orbit
    18s
    linear
    infinite;
}

.login-information::after {
  position: absolute;
  right: 18%;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border:
    1px solid
    rgba(
      136,
      116,
      47,
      .1
    );
  border-radius: 50%;
  content: "";
  animation:
    login-orbit
    24s
    linear
    reverse
    infinite;
}

.login-information__pattern {
  position: absolute;
  inset: 0;
  opacity: .32;
  background-image:
    linear-gradient(
      rgba(
        136,
        116,
        47,
        .06
      )
      1px,
      transparent
      1px
    ),
    linear-gradient(
      90deg,
      rgba(
        136,
        116,
        47,
        .06
      )
      1px,
      transparent
      1px
    );
  background-size:
    44px
    44px;
  mask-image:
    linear-gradient(
      to bottom,
      rgba(
        0,
        0,
        0,
        .8
      ),
      transparent
    );
}

.login-information__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  animation:
    login-information-enter
    650ms
    cubic-bezier(
      .2,
      .75,
      .25,
      1
    )
    both;
}

.login-information__header {
  max-width: 760px;
}

.login-information h2 {
  max-width: 760px;
  margin:
    18px
    0;
  color: var(--text);
  font-size:
    clamp(
      42px,
      5vw,
      72px
    );
  line-height: 1.02;
  letter-spacing: -.045em;
}

.login-information p {
  max-width: 680px;
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.login-feature-list {
  display: grid;
  grid-template-columns:
    repeat(
      3,
      minmax(
        0,
        1fr
      )
    );
  gap: 14px;
  margin-top: 60px;
}

.login-feature-list article {
  min-width: 0;
  padding: 20px;
  border:
    1px solid
    rgba(
      136,
      116,
      47,
      .24
    );
  border-radius: 14px;
  background:
    rgba(
      255,
      255,
      255,
      .68
    );
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.login-feature-list article:hover {
  border-color: var(--accent);
  background:
    rgba(
      255,
      255,
      255,
      .9
    );
  transform: translateY(-3px);
}

.login-feature-list article > div {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  border:
    1px solid
    #d1c58f;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.login-feature-list svg {
  width: 19px;
  height: 19px;
}

.login-feature-list strong,
.login-feature-list span {
  display: block;
}

.login-feature-list strong {
  font-size: 14px;
}

.login-feature-list span {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.login-information__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 38px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.login-information__status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation:
    login-pulse
    2s
    ease-in-out
    infinite;
}

@keyframes login-panel-enter {
  from {
    opacity: 0;
    transform:
      translateX(
        -18px
      );
  }

  to {
    opacity: 1;
    transform:
      translateX(
        0
      );
  }
}

@keyframes login-information-enter {
  from {
    opacity: 0;
    transform:
      translateY(
        18px
      );
  }

  to {
    opacity: 1;
    transform:
      translateY(
        0
      );
  }
}

@keyframes login-error-enter {
  from {
    opacity: 0;
    transform:
      translateY(
        -4px
      );
  }

  to {
    opacity: 1;
    transform:
      translateY(
        0
      );
  }
}

@keyframes login-spin {
  to {
    transform:
      rotate(
        360deg
      );
  }
}

@keyframes login-pulse {
  0%,
  100% {
    opacity: .45;
    transform:
      scale(
        .9
      );
  }

  50% {
    opacity: 1;
    transform:
      scale(
        1.15
      );
  }
}

@keyframes login-orbit {
  to {
    transform:
      rotate(
        360deg
      );
  }
}

@media (
  max-width: 1100px
) {
  .login-page {
    grid-template-columns:
      minmax(
        360px,
        470px
      )
      minmax(
        0,
        1fr
      );
  }

  .login-information {
    padding:
      54px
      44px;
  }

  .login-feature-list {
    grid-template-columns:
      1fr;
    gap: 10px;
  }

  .login-feature-list article {
    display: grid;
    grid-template-columns:
      38px
      minmax(
        0,
        1fr
      );
    column-gap: 14px;
    padding: 14px;
  }

  .login-feature-list article > div {
    grid-row:
      1
      /
      3;
    margin-bottom: 0;
  }
}

@media (
  max-width: 820px
) {
  .login-page {
    display: block;
    min-height: 100dvh;
    overflow-y: auto;
  }

  .login-panel {
    min-height: 100dvh;
    padding:
      34px
      22px;
    border-right: 0;
  }

  .login-panel__content {
    max-width: 430px;
  }

  .login-brand {
    min-height: 70px;
    margin-bottom: 34px;
  }

  .login-brand__logo {
    width: 175px;
    height: 64px;
  }

  .login-heading h1 {
    font-size: 40px;
  }

  .login-information {
    display: none;
  }
}

@media (
  max-width: 480px
) {
  .login-panel {
    align-items: flex-start;
    padding:
      24px
      16px
      30px;
  }

  .login-brand {
    margin-bottom: 28px;
  }

  .login-brand__logo {
    width: 160px;
    height: 58px;
  }

  .login-heading h1 {
    font-size: 36px;
  }

  .login-heading p {
    font-size: 13px;
  }

  .login-form {
    margin-top: 28px;
  }

  .form-field input,
  .login-submit {
    min-height: 50px;
  }

  .login-access {
    align-items: flex-start;
  }
}

@media (
  prefers-reduced-motion:
  reduce
) {
  *,
  *::before,
  *::after {
    animation-duration:
      .01ms !important;
    animation-iteration-count:
      1 !important;
    transition-duration:
      .01ms !important;
  }
}
