.cr-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
}

.cr-login-stage {
  display: flex;
  flex-direction: column;
  padding: 40px 56px 44px;
}

.cr-login-stage::before {
  background: radial-gradient(
      60% 55% at 100% 0%,
      rgba(222, 6, 19, 0.45),
      transparent 70%
    ),
    radial-gradient(55% 50% at 0% 100%, rgba(122, 2, 6, 0.6), transparent 70%);
}

.cr-login-stage::after {
  -webkit-mask-image: radial-gradient(
    70% 60% at 60% 45%,
    #000 20%,
    transparent 75%
  );
  mask-image: radial-gradient(70% 60% at 60% 45%, #000 20%, transparent 75%);
}

.cr-login-logo {
  align-self: flex-start;
}

.cr-login-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.cr-login-pitch {
  margin: auto 0;
  padding: 48px 0;
  max-width: 520px;
}

.cr-login-pitch .cr-badge-live {
  margin-bottom: 28px;
}

.cr-login-stage h1 {
  font-size: clamp(40px, 4.5vw, 60px);
  letter-spacing: -0.045em;
}

.cr-login-pitch > p {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: #cfcfcf;
}

.cr-login-points {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cr-login-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 600;
}

.cr-login-points li > span {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cr-red-soft);
  font-size: 18px;
}

.cr-login-float {
  position: absolute;
  right: 48px;
  bottom: 120px;
  width: 260px;
  padding: 16px;
  border-radius: var(--cr-radius-lg);
  background: #fff;
  color: var(--cr-ink);
  box-shadow: 0 40px 70px -30px rgba(222, 6, 19, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: crFloat 6s ease-in-out infinite;
}

.cr-login-float-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.cr-login-float-head .cr-icon-circle {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.cr-login-float-user {
  align-self: flex-end;
  background: var(--cr-ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 14px 14px 4px 14px;
  font-size: 12px;
  line-height: 1.4;
}

.cr-login-float-typing {
  display: inline-flex;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--cr-radius-pill);
  background: var(--cr-pink-2);
  align-self: flex-start;
}

.cr-login-float-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cr-red);
}

.cr-login-float-typing span:nth-child(2) {
  opacity: 0.6;
}

.cr-login-float-typing span:nth-child(3) {
  opacity: 0.3;
}

@keyframes crFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.cr-login-credits {
  margin: 0;
  font-size: 12px;
  color: #9a9a9a;
}

.cr-login-panel {
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
}

.cr-login-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cr-login-top form {
  margin: 0;
}

.cr-login-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cr-slate);
  text-decoration: none;
}

.cr-login-center {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.cr-login-box {
  width: 100%;
  max-width: 420px;
}

.cr-login-iso {
  height: 48px;
  width: auto;
  display: block;
}

.cr-login-box h2 {
  margin: 24px 0 0;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.cr-login-box h2 + p {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.6;
}

.cr-login-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cr-login-form .cr-field > i {
  font-size: 20px;
  color: var(--cr-slate);
}

.cr-field-pass {
  padding-right: 6px;
}

.cr-login-pass-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cr-login-pass-label a {
  font-size: 13px;
  font-weight: 600;
}

.cr-login-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--cr-radius-sm);
  background: var(--cr-pink-2);
  border: 1px solid var(--cr-pink);
  font-size: 14px;
  font-weight: 600;
  color: var(--cr-red-dark);
  animation: crShake 0.4s ease;
}

.cr-login-error i {
  color: var(--cr-red);
  font-size: 18px;
}

@keyframes crShake {
  0%,
  100% {
    transform: none;
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

.cr-login-submit {
  width: 100%;
  margin-top: 4px;
  height: 58px;
}

.cr-login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  color: var(--cr-muted);
  font-size: 13px;
}

.cr-login-divider::before,
.cr-login-divider::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: var(--cr-line);
}

.cr-login-register {
  width: 100%;
  height: 56px;
  font-size: 16px;
}

.cr-login-legal {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--cr-slate);
  text-align: center;
}

.cr-login-legal a {
  font-weight: 600;
}

@media (max-width: 900px) {
  .cr-login {
    grid-template-columns: minmax(0, 1fr);
  }

  .cr-login-stage {
    display: none;
  }

  .cr-login-panel {
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cr-login-float,
  .cr-login-error {
    animation: none;
  }
}
