:root {
  --bg: #08090b;
  --panel: #12141a;
  --border: rgba(148, 163, 184, .16);
  --text: #ffffff;
  --muted: #cbd5e1;
  --blue: #2563eb;
  --purple: #7c3aed;
  --green: #10b981;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, .24), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, .14), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(124, 58, 237, .12), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.cdp-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 14px;
}

.cdp-login-card {
  width: min(540px, 100%);
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    radial-gradient(circle at 0 0, rgba(59, 130, 246, .14), transparent 34%),
    rgba(18, 20, 26, .92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .35);
  padding: clamp(22px, 4vw, 36px);
}

.cdp-login-brand {
  width: fit-content;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.cdp-login-brand span {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--green));
  font-weight: 1000;
  box-shadow: 0 16px 42px rgba(37, 99, 235, .24);
}

.cdp-login-brand strong {
  font-size: 1.05rem;
  line-height: 1.1;
}

.cdp-login-heading {
  text-align: center;
}

.cdp-login-heading span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .10);
  border: 1px solid rgba(16, 185, 129, .28);
  color: #a7f3d0;
  font-size: .78rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cdp-login-heading h1 {
  margin: 16px 0 10px;
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.cdp-login-heading p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.cdp-login-alert {
  margin: 14px 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(59, 130, 246, .10);
  border: 1px solid rgba(59, 130, 246, .22);
  color: #dbeafe;
  line-height: 1.55;
}

.cdp-login-alert.error {
  background: rgba(239, 68, 68, .10);
  border-color: rgba(239, 68, 68, .25);
  color: #fecaca;
}

.cdp-login-alert.success {
  background: rgba(16, 185, 129, .10);
  border-color: rgba(16, 185, 129, .25);
  color: #d1fae5;
}

.cdp-google-btn,
.cdp-login-form button,
.cdp-login-secondary button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--green));
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(37, 99, 235, .22);
}

.cdp-google-btn span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 1000;
}

button:disabled,
input:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.cdp-login-divider {
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: .9rem;
  font-weight: 850;
}

.cdp-login-divider::before,
.cdp-login-divider::after {
  content: "";
  height: 1px;
  background: rgba(148, 163, 184, .16);
}

.cdp-login-form {
  display: grid;
  gap: 12px;
}

.cdp-login-form label {
  color: #dbeafe;
  font-weight: 900;
  display: grid;
  gap: 7px;
}

.cdp-login-form input {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, .20);
  background: rgba(255, 255, 255, .065);
  color: #fff;
  padding: 0 15px;
  outline: none;
  font: inherit;
}

.cdp-login-form input::placeholder {
  color: rgba(226, 232, 240, .58);
}

.cdp-login-form input:focus {
  border-color: rgba(59, 130, 246, .65);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .13);
}

.cdp-login-secondary {
  margin-top: 18px;
  text-align: center;
}

.cdp-login-secondary p {
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 850;
}

.cdp-login-secondary button {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: none;
}

.cdp-register-form {
  margin-top: 14px;
}

.cdp-login-links {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cdp-login-links a {
  color: #93c5fd;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 560px) {
  .cdp-login-page {
    padding: 12px 9px;
  }

  .cdp-login-card {
    border-radius: 26px;
    padding: 20px 14px;
  }
}
