.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 15%, rgb(99 102 241 / 24%), transparent 32%),
    radial-gradient(circle at 90% 85%, rgb(168 85 247 / 18%), transparent 34%),
    #f4f5fb;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgb(79 70 229 / 14%) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
    pointer-events: none;
  }
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 28px 70px rgb(15 23 42 / 16%),
    0 4px 14px rgb(15 23 42 / 6%);
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(150deg, #312e81 0%, #4338ca 42%, #6d28d9 100%);

  &::before,
  &::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgb(255 255 255 / 15%);
  }

  &::before {
    width: 420px;
    height: 420px;
    top: -160px;
    right: -160px;
    background: rgb(255 255 255 / 4%);
  }

  &::after {
    width: 300px;
    height: 300px;
    bottom: -130px;
    left: -110px;
    background: rgb(255 255 255 / 5%);
  }

  &__logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;

    span {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      border-radius: 11px;
      background: rgb(255 255 255 / 16%);
      border: 1px solid rgb(255 255 255 / 24%);
      font-size: 20px;
    }
  }

  &__content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;

    h1 {
      margin: 0;
      font-size: 36px;
      line-height: 1.3;
      font-weight: 700;
      letter-spacing: -0.5px;
    }

    p {
      margin: 20px 0 0;
      max-width: 340px;
      font-size: 14px;
      line-height: 1.8;
      color: rgb(255 255 255 / 72%);
    }

    ul {
      list-style: none;
      margin: 30px 0 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 13px;

      li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13.5px;
        color: rgb(255 255 255 / 88%);

        .anticon {
          font-size: 15px;
          color: #a5b4fc;
        }
      }
    }
  }

  &__footer {
    position: relative;
    z-index: 1;
    font-size: 11.5px;
    letter-spacing: 0.5px;
    color: rgb(255 255 255 / 50%);
  }
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 54px;

  &__inner {
    width: 100%;
    max-width: 360px;
  }

  &__header {
    margin-bottom: 26px;

    h2 {
      margin: 16px 0 6px;
      font-size: 26px;
      font-weight: 700;
      color: var(--app-text);
    }

    p {
      margin: 0;
      font-size: 13.5px;
      color: var(--app-text-secondary);
    }
  }

  &__helper {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 20px;
    font-size: 12px;
    color: var(--app-text-secondary);

    a {
      color: var(--app-primary);
      cursor: pointer;
    }
  }

  .ant-form-item {
    margin-bottom: 18px;
  }
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    max-width: 440px;
  }

  .login-brand {
    display: none;
  }

  .login-panel {
    padding: 40px 34px;
  }
}

@media (max-width: 480px) {
  .login-page {
    padding: 16px;
  }

  .login-shell {
    border-radius: 18px;
  }

  .login-panel {
    padding: 32px 24px;
  }
}
