:root {
  --signin-navy: #001f3f;
  --signin-navy-soft: #062b52;
  --signin-accent: #15ad96;
  --signin-text: #1f2937;
  --signin-muted: #667085;
  --signin-border: #d8dee6;
  --signin-surface: #ffffff;
}

html,
body {
  min-height: 100%;
}

.cpp-signin-page {
  background:
    radial-gradient(circle at 76% 18%, rgba(21, 173, 150, 0.12), transparent 28%),
    linear-gradient(135deg, #f6f9fc 0%, #edf3f7 52%, #f8fbfd 100%);
  color: var(--signin-text);
  font-family: "Nunito", sans-serif;
  min-height: 100vh;
}

.cpp-signin-shell {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  margin: 0 auto;
  min-height: 100vh;
}

.cpp-signin-brand {
  background:
    radial-gradient(circle at 76% 22%, rgba(21, 173, 150, 0.32), transparent 28%),
    radial-gradient(circle at 16% 82%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(135deg, #001b37 0%, #062747 54%, #020b18 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
  padding: 48px;
  position: relative;
}

.cpp-signin-brand:before {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  content: "";
  height: 360px;
  position: absolute;
  right: -150px;
  top: -130px;
  width: 360px;
}

.cpp-signin-brand:after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  bottom: 34px;
  content: "";
  height: 180px;
  left: 34px;
  opacity: 0.3;
  position: absolute;
  width: 240px;
}

.cpp-signin-brand-content {
  max-width: 560px;
  position: relative;
  z-index: 1;
  animation: cppFadeUp 0.7s ease both;
}

.cpp-signin-kicker {
  color: var(--signin-accent);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.cpp-signin-brand h1 {
  color: #ffffff;
  font-size: clamp(2.15rem, 3.1vw, 3.35rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 540px;
}

.cpp-signin-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 470px;
}

.cpp-signin-visual {
  margin: 34px 0;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.cpp-signin-visual:before,
.cpp-signin-visual:after {
  border-radius: 999px;
  content: "";
  position: absolute;
}

.cpp-signin-visual:before {
  background: rgba(21, 173, 150, 0.24);
  filter: blur(36px);
  height: 120px;
  right: 16px;
  top: 18px;
  width: 170px;
}

.cpp-signin-visual:after {
  background: rgba(255, 255, 255, 0.12);
  height: 86px;
  left: -20px;
  top: 92px;
  width: 86px;
}

.cpp-dashboard-mockup {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  padding: 16px;
  position: relative;
  transform: perspective(900px) rotateX(2deg) rotateY(-4deg);
  animation: cppFloat 5.5s ease-in-out infinite;
}

.cpp-dashboard-top {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cpp-dashboard-top span:first-child {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  height: 9px;
  width: 118px;
}

.cpp-dashboard-top span:last-child {
  background: rgba(21, 173, 150, 0.86);
  border-radius: 999px;
  height: 28px;
  width: 84px;
}

.cpp-dashboard-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1.2fr 0.8fr;
}

.cpp-dashboard-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  color: #102033;
  min-height: 92px;
  padding: 14px;
}

.cpp-dashboard-card--wide {
  grid-row: span 2;
}

.cpp-dashboard-card small {
  color: #667085;
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cpp-dashboard-card strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-top: 12px;
}

.cpp-dashboard-card em {
  background: #dcfce7;
  border-radius: 999px;
  color: #166534;
  display: inline-flex;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  margin-top: 12px;
  padding: 5px 8px;
}

.cpp-dashboard-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cpp-dashboard-list span {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  height: 10px;
}

.cpp-dashboard-list span:nth-child(2) {
  width: 84%;
}

.cpp-dashboard-list span:nth-child(3) {
  width: 66%;
}

.cpp-signin-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.cpp-signin-points span {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  padding: 9px 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cpp-signin-points span:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.cpp-signin-points i {
  color: var(--signin-accent);
}

.cpp-signin-card {
  align-self: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
  justify-self: center;
  margin: 32px;
  max-width: 470px;
  padding: 42px;
  width: calc(100% - 64px);
  animation: cppFadeUp 0.62s ease 0.08s both;
}

.cpp-signin-form-logo {
  align-items: center;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  display: flex;
  margin-bottom: 26px;
  margin-left: auto;
  margin-right: auto;
  padding: 13px 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  width: max-content;
}

.cpp-signin-form-logo:hover,
.cpp-signin-form-logo:focus {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.cpp-signin-form-logo img {
  display: block;
  height: 30px;
  width: auto;
}

.cpp-signin-card-header {
  margin-bottom: 24px;
}

.cpp-signin-card h2 {
  color: var(--signin-text);
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.cpp-signin-card p {
  color: var(--signin-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}

.cpp-signin-alert {
  border-radius: 7px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cpp-signin-form .form-group {
  margin-bottom: 18px;
}

.cpp-signin-form label {
  color: #344054;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cpp-input-wrap {
  position: relative;
}

.cpp-input-wrap > i {
  color: #8ea0ae;
  font-size: 1rem;
  left: 17px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.cpp-input-wrap .form-control {
  background: #f8fafc;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  color: var(--signin-text);
  font-size: 1rem;
  height: 54px;
  padding-left: 48px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cpp-input-wrap .form-control:hover {
  background: #ffffff;
  border-color: #c9d6df;
}

.cpp-input-wrap .form-control:focus {
  background: #ffffff;
  border-color: var(--signin-accent);
  box-shadow: 0 0 0 4px rgba(21, 173, 150, 0.14);
}

.cpp-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #667085;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 4px;
  top: 6px;
  width: 42px;
  z-index: 3;
}

.cpp-password-toggle:focus {
  outline: 2px solid rgba(21, 173, 150, 0.3);
  outline-offset: -4px;
}

.cpp-signin-help {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 4px 0 22px;
}

.cpp-signin-help span {
  color: var(--signin-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.cpp-signin-help span i {
  color: var(--signin-accent);
  margin-right: 4px;
}

.cpp-signin-help a {
  color: var(--signin-navy);
  font-size: 0.86rem;
  font-weight: 800;
}

.cpp-link-button {
  background: transparent;
  border: 0;
  color: var(--signin-navy);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0;
}

.cpp-link-button:hover,
.cpp-link-button:focus {
  color: var(--signin-accent);
  outline: 0;
}

.cpp-google-signin {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.13);
  border-radius: 15px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
  color: #1f2937;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 850;
  gap: 11px;
  height: 50px;
  justify-content: center;
  margin-bottom: 16px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.cpp-google-signin:hover,
.cpp-google-signin:focus {
  border-color: rgba(21, 173, 150, 0.34);
  box-shadow: 0 16px 34px rgba(21, 173, 150, 0.13);
  color: #0f172a;
  text-decoration: none;
  transform: translateY(-1px);
}

.cpp-google-icon {
  align-items: center;
  background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0 100%);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.cpp-signin-divider {
  align-items: center;
  color: var(--signin-muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.cpp-signin-divider::before,
.cpp-signin-divider::after {
  background: rgba(15, 23, 42, 0.1);
  content: "";
  flex: 1;
  height: 1px;
}

.cpp-signin-button {
  align-items: center;
  background: var(--signin-accent);
  border: 0;
  border-radius: 15px;
  box-shadow: 0 16px 34px rgba(21, 173, 150, 0.24);
  color: #ffffff;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  gap: 8px;
  height: 50px;
  justify-content: center;
  width: 100%;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cpp-signin-button:hover,
.cpp-signin-button:focus {
  background: #119a85;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(21, 173, 150, 0.28);
  transform: translateY(-1px);
}

.cpp-signin-support {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 15px;
  color: #475569;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 14px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  width: 100%;
}

.cpp-signin-support:hover,
.cpp-signin-support:focus {
  background: rgba(21, 173, 150, 0.06);
  border-color: rgba(21, 173, 150, 0.24);
  color: #0b6d60;
}

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

@keyframes cppFloat {
  0%,
  100% {
    transform: perspective(900px) rotateX(2deg) rotateY(-4deg) translateY(0);
  }
  50% {
    transform: perspective(900px) rotateX(2deg) rotateY(-4deg) translateY(-8px);
  }
}

@media (max-width: 900px) {
  .cpp-signin-shell {
    display: block;
    min-height: 100vh;
  }

  .cpp-signin-brand {
    min-height: auto;
    padding: 28px 22px;
  }

  .cpp-signin-brand-content {
    margin: 42px 0 22px;
  }

  .cpp-signin-brand h1 {
    font-size: 2rem;
  }

  .cpp-signin-points {
    margin-top: 20px;
  }

  .cpp-signin-visual {
    display: none;
  }

  .cpp-signin-card {
    margin: -18px auto 24px;
    padding: 26px 20px;
    width: calc(100% - 32px);
  }
}

@media (max-width: 520px) {
  .cpp-signin-brand h1 {
    font-size: 1.6rem;
  }

  .cpp-signin-brand p {
    font-size: 0.95rem;
  }

  .cpp-signin-card h2 {
    font-size: 1.65rem;
  }

  .cpp-signin-help {
    align-items: flex-start;
    flex-direction: column;
  }
}
