.login-layout,
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #f9f8f0 0%, #f1f4e9 58%, #e8efe4 100%);
  box-shadow: inset 0 0 0 1px #e1e5d9;
}

.login-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .9fr);
  min-height: 680px;
  align-items: center;
  gap: 32px;
  padding: 45px 48px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.login-layout .hero-copy {
  align-self: start;
  padding-top: 12px;
}

.login-layout .hero-copy::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: -35px -28px -35px -45px;
  background: radial-gradient(ellipse at 28% 20%, #f9f8f0 32%, #f9f8f0e8 54%, transparent 83%);
  pointer-events: none;
}

.hero-illustration,
.login-layout .hero-illustration,
.hero > .hero-illustration {
  position: absolute;
  z-index: 0;
  width: min(74%, 790px);
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 85% at 35% 63%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 85% at 35% 63%, #000 50%, transparent 100%);
}

.login-layout .hero-illustration {
  left: -30px;
  bottom: -32px;
}

.hero-illustration img {
  display: block;
  width: 100%;
  height: auto;
}

.login-layout .login-card {
  position: relative;
  z-index: 2;
  grid-column: 2;
  margin: 0;
  background: #fffef9f0;
  box-shadow: 0 20px 55px #203c3920;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero {
  min-height: 390px;
  padding: 48px 52px;
}

.hero .hero-copy {
  max-width: 62%;
}

.hero > .hero-illustration {
  width: min(70%, 740px);
  right: -26px;
  bottom: 0;
  -webkit-mask-image: radial-gradient(ellipse 58% 82% at 62% 60%, #000 48%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 82% at 62% 60%, #000 48%, transparent 100%);
}

@media (max-width: 720px) {
  .login-layout,
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    gap: 0;
    padding: 28px 18px 24px;
    border-radius: 24px;
  }

  .login-layout .hero-copy,
  .hero .hero-copy {
    max-width: none;
    align-self: auto;
    padding: 0 3px;
  }

  .login-layout .hero-copy::before {
    display: none;
  }

  .hero-illustration,
  .login-layout .hero-illustration,
  .hero > .hero-illustration {
    position: relative;
    display: block;
    left: auto;
    right: auto;
    bottom: auto;
    width: calc(100% + 36px);
    max-width: none;
    margin: 6px -18px -15px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 86%, transparent 100%);
  }

  .login-layout .login-card {
    align-self: stretch;
    margin: -24px 0 0;
    padding: 26px 22px;
  }

  .hero > .hero-illustration {
    margin-bottom: -38px;
  }
}
