.login-panel {
  overflow-y: auto;
}

.auth-switch {
  width: min(430px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 13px;
  padding: 4px;
  border: 1px solid #dfe4eb;
  border-radius: 13px;
  background: #e9edf3;
}

.auth-switch a {
  min-height: 39px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #6e7788;
  font-size: 10px;
  font-weight: 800;
  transition: .2s ease;
}

.auth-switch a.active {
  color: #12315f;
  background: #fff;
  box-shadow: 0 6px 16px rgba(12, 25, 44, .08);
}

.registration-card {
  width: min(520px, 100%);
  padding: 30px 32px;
}

.registration-card h2 {
  font-size: 28px;
}

.registration-card > p {
  margin-bottom: 20px;
}

.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.login-card .consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 9px;
  margin: 1px 0 16px;
  color: #667188;
  line-height: 1.45;
}

.login-card .consent-row input {
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  accent-color: #2864f0;
}

.login-card .consent-row span {
  font-size: 8px;
  font-weight: 500;
}

.consent-row a {
  color: #2864f0;
  font-weight: 800;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.auth-actions {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 9px;
  margin-top: 4px;
}

.auth-actions .primary,
.auth-actions .demo-login {
  width: 100%;
  min-height: 48px;
}

.demo-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #bfcdf0;
  border-radius: 12px;
  color: #234fbd;
  background: linear-gradient(135deg, #f4f7ff, #edf1ff);
  font-size: 10px;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(40, 100, 240, .1);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.demo-login:hover {
  transform: translateY(-1px);
  border-color: #7f9ee8;
  box-shadow: 0 14px 30px rgba(40, 100, 240, .16);
}

.demo-login span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2864f0, #7551eb);
  font-size: 7px;
}

.login-card > .demo-note {
  margin: 10px 0 0;
  color: #818b9d;
  text-align: center;
  font-size: 8px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .login-panel {
    overflow: visible;
  }
}

@media (max-width: 620px) {
  .registration-card {
    padding: 25px;
  }

  .register-grid {
    grid-template-columns: 1fr;
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }
}
