/* ===== 21st animated characters login page (ported) ===== */

.page-login-copy {
  background: #fff;
}

.page-login-copy body {
  background: #fff;
}

.login-copy-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 39vw) minmax(0, 1fr);
  background: #fff;
}

.login-copy-left {
  --login-copy-card-shift: clamp(1.25rem, 2.8vw, 2.25rem);
  position: relative;
  min-height: calc(100vh - 3rem);
  margin: 1.5rem 0 1.5rem 1.5rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  color: #fff;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 76% 72%, rgba(255, 190, 118, 0.22), transparent 34%),
    radial-gradient(circle at 18% 18%, rgba(120, 222, 205, 0.2), transparent 28%),
    linear-gradient(135deg, #20324f 0%, #23506a 54%, #2f6f84 100%);
  box-shadow: 0 24px 60px rgba(32, 50, 79, 0.18);
  transform: translateX(var(--login-copy-card-shift));
}

.login-copy-brand,
.login-copy-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.login-copy-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.92rem;
}

.login-copy-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: min(500px, calc(100vh - 14rem));
  min-height: 390px;
}

.login-copy-characters {
  position: relative;
  width: 550px;
  height: 400px;
  transform: translateX(-1.1rem) scale(0.84);
  transform-origin: bottom center;
}

.login-copy-character {
  position: absolute;
  bottom: 0;
  transform-origin: bottom center;
  transition:
    transform 0.7s ease,
    height 0.7s ease,
    left 0.2s ease,
    top 0.2s ease;
}

.login-copy-character-purple {
  left: 70px;
  width: 180px;
  height: 400px;
  z-index: 1;
  border-radius: 10px 10px 0 0;
  background: #ff8677;
}

.login-copy-character-black {
  left: 240px;
  width: 120px;
  height: 310px;
  z-index: 2;
  border-radius: 8px 8px 0 0;
  background: #172033;
}

.login-copy-character-orange {
  left: 0;
  width: 240px;
  height: 200px;
  z-index: 3;
  border-radius: 120px 120px 0 0;
  background: #ffd166;
}

.login-copy-character-yellow {
  left: 310px;
  width: 140px;
  height: 230px;
  z-index: 4;
  border-radius: 70px 70px 0 0;
  background: #a7ded3;
}

.login-copy-eye-row,
.login-copy-face-row {
  position: absolute;
  display: flex;
}

.login-copy-eye-row {
  transition: left 0.7s ease, top 0.7s ease;
}

.login-copy-eye-row-purple {
  left: 45px;
  top: 40px;
  gap: 2rem;
}

.login-copy-eye-row-black {
  left: 26px;
  top: 32px;
  gap: 1.5rem;
}

.login-copy-face-row {
  transition: left 0.2s ease, top 0.2s ease;
}

.login-copy-face-row-orange {
  left: 82px;
  top: 90px;
  gap: 2rem;
}

.login-copy-face-row-yellow {
  left: 52px;
  top: 40px;
  gap: 1.5rem;
}

.login-copy-eyeball {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  transition: height 0.15s ease;
}

.login-copy-eyeball-sm {
  width: 16px;
  height: 16px;
}

.login-copy-eyeball.is-blinking {
  height: 2px;
}

.login-copy-pupil {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2d2d2d;
  transition: transform 0.1s ease-out;
}

.login-copy-pupil-sm {
  width: 6px;
  height: 6px;
}

.login-copy-pupil-md {
  width: 12px;
  height: 12px;
}

.login-copy-mouth {
  position: absolute;
  left: 40px;
  top: 88px;
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: #2d2d2d;
  transition: left 0.2s ease, top 0.2s ease;
}

.login-copy-footer-links {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.68);
}

.login-copy-bg-grid,
.login-copy-bg-blob {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-copy-bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 18px 18px;
}

.login-copy-bg-blob {
  border-radius: 50%;
  filter: blur(64px);
  inset: auto;
}

.login-copy-bg-blob-a {
  top: 18%;
  right: -18%;
  width: 18rem;
  height: 18rem;
  background: rgba(167, 222, 211, 0.12);
}

.login-copy-bg-blob-b {
  bottom: 8%;
  left: -26%;
  width: 25rem;
  height: 25rem;
  background: rgba(255, 209, 102, 0.12);
}

.login-copy-right {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem clamp(2rem, 8vw, 8rem);
  background: #fff;
}

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

.login-copy-mode {
  display: grid;
  gap: 1.1rem;
}

.login-copy-mobile-brand {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 3rem;
}

.login-copy-heading {
  text-align: center;
  margin-bottom: 2.25rem;
}

.login-copy-heading h1 {
  margin: 0 0 0.5rem;
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.login-copy-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-copy-heading-left {
  text-align: left;
}

.login-copy-heading-meta {
  margin-bottom: 0.6rem;
}

.login-copy-form {
  display: grid;
  gap: 1.15rem;
}

.login-copy-field {
  display: grid;
  gap: 0.5rem;
}

.login-copy-field > span {
  font-size: 0.92rem;
  font-weight: 700;
}

.login-copy-field input:not([type="checkbox"]) {
  width: 100%;
  height: 3rem;
  padding: 0 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-copy-field input:not([type="checkbox"]):focus {
  outline: none;
  border-color: rgba(31, 157, 139, 0.45);
  box-shadow: 0 0 0 3px rgba(31, 157, 139, 0.12);
}

.login-copy-password-wrap {
  position: relative;
}

.login-copy-password-wrap input {
  padding-right: 4.5rem !important;
}

.login-copy-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.login-copy-inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.login-copy-inline-button {
  min-height: 3rem;
  padding-inline: 1rem;
  white-space: nowrap;
}

.login-copy-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.login-copy-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.login-copy-remember input {
  accent-color: var(--teal);
}

.login-copy-link-button,
.login-copy-backlink {
  border: none;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.login-copy-forgot {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.login-copy-forgot:hover {
  text-decoration: underline;
}

.login-copy-backlink {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.login-copy-backlink:hover {
  color: var(--teal);
}

.login-copy-helper {
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.login-copy-error {
  min-height: 1.2rem;
  margin: -0.15rem 0 0;
}

.login-copy-submit {
  height: 3.15rem;
}

@media (min-width: 1024px) {
  .login-copy-left {
    display: flex;
  }

  .login-copy-mobile-brand {
    display: none;
  }
}

@media (max-width: 1023px) {
  .login-copy-shell {
    grid-template-columns: 1fr;
  }

  .login-copy-left {
    margin: 0;
    border-radius: 0;
  }
}

@media (max-width: 640px) {
  .login-copy-right {
    padding: 1.25rem;
  }

  .login-copy-heading {
    margin-bottom: 2rem;
  }

  .login-copy-heading h1 {
    font-size: 1.7rem;
  }

  .login-copy-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-copy-inline-field {
    grid-template-columns: 1fr;
  }
}
