body.cp-auth-body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #eef7ff 0%, #e6f3ff 42%, #d8eefc 100%);
  color: #0f1d3b;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

body.cp-auth-body::before,
body.cp-auth-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.cp-auth-body::before {
  background:
    linear-gradient(90deg, rgba(102, 141, 214, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(102, 141, 214, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 96%);
}

body.cp-auth-body::after {
  display: none;
}

.cp-login-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
}

.cp-login-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(360px, 420px);
  gap: 0;
  width: 100vw;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.cp-login-hero,
.cp-login-card,
.cp-login-domain-card {
  animation: cpLoginLift 0.75s ease both;
}

.cp-login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 46px 24px;
  border-right: 1px solid rgba(142, 172, 231, 0.14);
  border-radius: 0;
  background: linear-gradient(180deg, #ebf7ff 0%, #e4f3ff 52%, #d8edfb 100%);
  color: #14325f;
  overflow: hidden;
}

.cp-login-hero::before,
.cp-login-card-glow {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  animation: cpLoginFloat 7s ease-in-out infinite;
}

.cp-login-hero::before {
  display: none;
}

.cp-login-orbit {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  gap: 6px;
  justify-items: end;
}

.cp-login-orbit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(144, 180, 236, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #345c98;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(67, 119, 190, 0.08);
  animation: cpLoginChipDrift 8s ease-in-out infinite;
}

.cp-login-orbit-chip i {
  font-size: 13px;
}

.cp-login-orbit-chip.chip-stock {
  animation-delay: -2.2s;
}

.cp-login-orbit-chip.chip-royalty {
  animation-delay: -4.1s;
}

.cp-login-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

.cp-login-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 30px rgba(32, 138, 255, 0.12);
}

.cp-login-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.cp-login-hero-brand strong,
.cp-login-hero-copy h1,
.cp-login-card-head h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.cp-login-hero-brand strong {
  display: block;
  margin-bottom: 3px;
  font-size: 24px;
  font-weight: 700;
}

.cp-login-hero-brand span,
.cp-login-hero-copy p,
.cp-login-metric span,
.cp-login-foot-note {
  color: #5a729c;
}

.cp-login-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: #6f93cc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cp-login-hero-copy h1 {
  max-width: 860px;
  margin: 0 0 6px;
  color: #133463;
  font-size: clamp(38px, 3vw, 56px);
  line-height: 1.05;
}

.cp-login-hero-copy p {
  max-width: 960px;
  margin: 0;
  font-size: 14px;
  line-height: 1.48;
}

.cp-login-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.cp-login-metric {
  display: flex;
  gap: 14px;
  min-height: 72px;
  padding: 12px 15px;
  border: 1px solid rgba(155, 187, 236, 0.34);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(244, 250, 255, 0.82) 100%);
  box-shadow: 0 10px 24px rgba(83, 123, 188, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cp-login-metric:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 163, 236, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 250, 255, 1) 100%);
}

.cp-login-metric-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, #edf6ff 0%, #deeeff 100%);
  color: #3c7be2;
  font-size: 18px;
}

.cp-login-metric strong {
  display: block;
  margin-bottom: 3px;
  color: #18345e;
  font-size: 15px;
  font-weight: 700;
}

.cp-login-metric span {
  display: block;
  font-size: 11.5px;
  line-height: 1.35;
}

.cp-login-hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 0;
}

.cp-login-hero-strip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #315685;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(155, 187, 236, 0.28);
}

.cp-login-domain-band {
  margin-top: auto;
  padding: 14px 14px;
  border: 1px solid rgba(155, 187, 236, 0.3);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(242, 248, 255, 0.72) 100%);
}

.cp-login-domain-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.cp-login-domain-head strong {
  color: #18345e;
  font-size: 15px;
  font-weight: 700;
}

.cp-login-domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cp-login-domain-card {
  display: flex;
  gap: 12px;
  min-height: 66px;
  padding: 11px 12px;
  border: 1px solid rgba(160, 191, 236, 0.32);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  animation: cpLoginLift 0.8s ease both;
}

.cp-login-domain-card:nth-child(2) {
  animation-delay: 0.08s;
}

.cp-login-domain-card:nth-child(3) {
  animation-delay: 0.16s;
}

.cp-login-domain-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(180deg, #edf6ff 0%, #deeeff 100%);
  color: #3f80e4;
  font-size: 17px;
}

.cp-login-domain-card strong {
  display: block;
  margin-bottom: 3px;
  color: #18345e;
  font-size: 13px;
  font-weight: 700;
}

.cp-login-domain-card span {
  color: #5e7398;
  font-size: 11px;
  line-height: 1.3;
}

.cp-login-card {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 30px 18px;
  border-left: 1px solid rgba(143, 173, 230, 0.14);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(245, 250, 255, 0.92) 100%);
  box-shadow: none;
  overflow: hidden;
}

.cp-login-card-glow {
  display: none;
}

.cp-login-card-head {
  position: relative;
  text-align: center;
  margin-bottom: 18px;
}

.cp-login-card-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  box-shadow: inset 0 0 0 1px #d8e4fb;
}

.cp-login-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.cp-login-card-head h2 {
  margin: 0 0 6px;
  color: #10224c;
  font-size: 26px;
  font-weight: 700;
}

.cp-login-card-head p {
  max-width: 340px;
  margin: 0 auto;
  color: #5f7198;
  font-size: 13px;
  line-height: 1.4;
}

.cp-login-tabs .tab-pane {
  padding: 2px 0 0;
}

.cp-login-field {
  margin-bottom: 10px;
}

.cp-login-field label {
  display: block;
  margin-bottom: 8px;
  color: #203562;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cp-login-input-wrap {
  position: relative;
}

.cp-login-input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6a82b1;
  font-size: 16px;
}

.cp-login-card .form-control {
  height: 50px;
  padding: 0 16px 0 48px;
  border: 1px solid #d6e0f3;
  border-radius: 16px;
  background: #f9fbff;
  color: #112550;
  font-size: 16px;
  box-shadow: none;
}

.cp-login-card .form-control:focus {
  border-color: #4f8df5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 141, 245, 0.12);
}

.cp-login-card .form-control.top,
.cp-login-card .form-control.bottom {
  border-radius: 16px;
}

.cp-login-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
  color: #6f7f9f;
  font-size: 13px;
  font-weight: 600;
}

.cp-login-submit,
.cp-login-secondary {
  min-height: 48px;
  border: 0;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cp-login-submit {
  background: linear-gradient(135deg, #2479f2 0%, #2ea6ff 100%);
  box-shadow: 0 18px 32px rgba(36, 121, 242, 0.22);
}

.cp-login-submit:hover,
.cp-login-submit:focus {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(36, 121, 242, 0.28);
}

.cp-login-secondary {
  background: linear-gradient(180deg, #f5f8ff 0%, #eaf1ff 100%);
  color: #1f4e9d;
  box-shadow: inset 0 0 0 1px #d6e0f3;
}

.cp-login-secondary:hover,
.cp-login-secondary:focus {
  color: #1f4e9d;
  text-decoration: none;
  transform: translateY(-1px);
}

.cp-login-forgot-copy {
  margin-bottom: 14px;
}

.cp-login-forgot-copy h3 {
  margin: 0 0 8px;
  color: #10224c;
  font-size: 24px;
  font-weight: 700;
}

.cp-login-forgot-copy p {
  margin: 0;
  color: #627393;
  font-size: 14px;
  line-height: 1.65;
}

.cp-login-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e6edf9;
}

.cp-login-foot-links .list-inline {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0 0 10px;
}

.cp-login-foot-links .list-inline > li {
  padding: 0;
}

.cp-login-foot-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #d7e1f3;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  color: #3b5f98 !important;
  font-size: 13px;
  font-weight: 800;
  transition: 0.18s ease;
  text-decoration: none !important;
}

.cp-login-foot-links a:hover,
.cp-login-foot-links a:focus {
  border-color: #4f8df5;
  background: #eff6ff;
  color: #2b63bf !important;
  text-decoration: none;
}

.cp-login-foot-note {
  margin: 0;
  text-align: center;
  font-size: 13px;
}

@keyframes cpLoginLift {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cpLoginFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

@keyframes cpLoginChipDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-8px, 8px, 0);
  }
}

@media (max-width: 1180px) {
  .cp-login-shell {
    padding: 0;
  }

  .cp-login-frame {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .cp-login-hero {
    padding: 22px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(142, 172, 231, 0.18);
  }

  .cp-login-orbit {
    position: static;
    margin-bottom: 14px;
    justify-items: start;
  }

  .cp-login-card {
    max-width: none;
    width: 100%;
    margin: 0;
    border-left: 0;
    padding: 22px 20px;
  }

  .cp-select-frame {
    grid-template-columns: 1fr;
  }

  .cp-select-stage {
    border-left: 0;
    border-top: 1px solid rgba(142, 172, 231, 0.18);
    padding: 22px 20px;
  }
}

@media (max-width: 760px) {
  .cp-login-hero-grid {
    grid-template-columns: 1fr;
  }

  .cp-login-domain-grid {
    grid-template-columns: 1fr;
  }

  .cp-login-card {
    padding: 20px 18px 18px;
  }

  .cp-login-hero-copy h1 {
    font-size: 28px;
  }

  .cp-login-card-head h2 {
    font-size: 26px;
  }

  .cp-login-card .form-control {
    font-size: 16px;
  }

  .cp-login-foot-links .list-inline {
    flex-direction: column;
    gap: 8px;
  }
}

.cp-select-shell {
  padding: 0;
}

.cp-select-form-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.cp-select-frame {
  grid-template-columns: minmax(0, 1.9fr) minmax(360px, 420px);
}

.cp-select-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 24px 32px 20px;
  border-left: 1px solid rgba(143, 173, 230, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(245, 250, 255, 0.92) 100%);
}

.cp-select-card {
  width: 100%;
  padding: 22px 24px 18px;
  border: 1px solid rgba(143, 173, 230, 0.24);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 251, 255, 0.99) 100%);
  box-shadow: 0 20px 42px rgba(59, 94, 159, 0.1);
}

.cp-select-card-sm {
  max-width: 440px;
  margin: 0 auto;
}

.cp-select-card-head {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.cp-select-card-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  box-shadow: inset 0 0 0 1px #d8e4fb;
}

.cp-select-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.cp-select-fields {
  display: grid;
  gap: 12px;
}

.cp-select-field .form-control,
.cp-select-inline .form-control {
  height: 50px;
  border: 1px solid #d6e0f3;
  border-radius: 16px;
  background: #f9fbff;
  color: #112550;
  font-size: 16px;
  box-shadow: none;
}

.cp-select-field .form-control:focus,
.cp-select-inline .form-control:focus {
  border-color: #4f8df5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 141, 245, 0.12);
}

.cp-select-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.cp-select-inline-btn {
  min-width: 118px;
  height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid #d6e0f3;
  background: linear-gradient(180deg, #f5f8ff 0%, #eaf1ff 100%);
  color: #1f4e9d;
  font-weight: 700;
}

.cp-select-submit {
  min-height: 50px;
  margin-top: 2px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #2479f2 0%, #2ea6ff 100%);
  box-shadow: 0 18px 32px rgba(36, 121, 242, 0.22);
  font-size: 17px;
  font-weight: 700;
}

.cp-select-submit:hover,
.cp-select-submit:focus {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(36, 121, 242, 0.28);
}

.cp-select-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e6edf9;
}

.cp-select-link {
  color: #5d73a5;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .cp-select-card {
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  .cp-select-inline {
    grid-template-columns: 1fr;
  }
}
