/* ===== Sign Up page ===== */
.signup-page {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 100vh;
  overflow-x: hidden;
  background: #fff;
}

.signup-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 48px;
  color: #eaf2ff;
  background:
    radial-gradient(circle at 18% 20%, rgba(90, 150, 255, .38), transparent 46%),
    radial-gradient(circle at 85% 80%, rgba(124, 92, 245, .34), transparent 48%),
    linear-gradient(160deg, #0b2f78 0%, #123e9c 45%, #3a1f7a 100%);
  overflow: hidden;
}

.brand-intro {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  animation: fadeUp .6s ease both;
  animation-delay: .1s;
}

.brand-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  max-width: 380px;
}

.brand-intro p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(234, 242, 255, .78);
  max-width: 360px;
}

/* floating decorative blobs */
.brand-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: .6;
  pointer-events: none;
}

.brand-blob.b1 {
  width: 180px;
  height: 180px;
  top: -50px;
  right: -40px;
  background: radial-gradient(circle at 30% 30%, #9dc4fb, transparent 70%);
  animation: floatY 7s ease-in-out infinite;
}

.brand-blob.b2 {
  width: 140px;
  height: 140px;
  bottom: 60px;
  right: -30px;
  background: radial-gradient(circle at 30% 30%, #b7a6f7, transparent 70%);
  animation: floatY 9s ease-in-out infinite reverse;
}

.brand-blob.b3 {
  width: 110px;
  height: 110px;
  bottom: -30px;
  left: -20px;
  background: radial-gradient(circle at 30% 30%, #8ad9c4, transparent 70%);
  animation: floatY 8s ease-in-out infinite 1s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-22px) translateX(10px); }
}

/* illustration */
.signup-art {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 6px auto 8px;
  animation: fadeUp .7s ease both;
}

.art-card-front { animation: floatY 6s ease-in-out infinite; transform-origin: center; }
.art-card-back { animation: floatY 6s ease-in-out infinite .4s; transform-origin: center; }
.art-coin { animation: coinBob 3.2s ease-in-out infinite; transform-origin: center; }

@keyframes coinBob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(6deg); }
}

.art-spark { animation: sparkle 2.6s ease-in-out infinite; }
.art-spark.s2 { animation-delay: .6s; }
.art-spark.s3 { animation-delay: 1.2s; }

@keyframes sparkle {
  0%, 100% { opacity: .3; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.15); }
}

.signup-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

.signup-logo-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
}

.signup-logo-text strong {
  color: #fff;
}

.signup-logo-text span {
  color: #9dc4fb;
}

.brand-features {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 14px;
  margin: 24px 0 14px;
  padding: 0;
}

.brand-feature {
  display: flex;
  align-items: center;
  gap: 26px;
  cursor: default;
  animation: slideIn .6s ease both;
  animation-delay: var(--d, 0s);
}

.brand-feature:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.bf-art {
  width: 122px;
  height: auto;
  flex: none;
  filter: drop-shadow(0 10px 18px rgba(4, 16, 50, .3));
}

/* illustration inner motion */
.art-float { animation: floatY 5s ease-in-out infinite; transform-origin: center; }
.art-spin-wrap { animation: floatY 6s ease-in-out infinite; transform-origin: center; }

.art-bar { transform-box: fill-box; transform-origin: bottom; animation: barGrow 2.8s ease-in-out infinite; }
.art-bar.b2 { animation-delay: .2s; }
.art-bar.b3 { animation-delay: .4s; }
.art-bar.b4 { animation-delay: .6s; }

@keyframes barGrow {
  0%, 100% { transform: scaleY(.7); }
  50% { transform: scaleY(1); }
}

.art-line {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: drawLine 3s ease-in-out infinite;
}

@keyframes drawLine {
  0% { stroke-dashoffset: 90; }
  45%, 100% { stroke-dashoffset: 0; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-26px); }
  to { opacity: 1; transform: translateX(0); }
}

.bf-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  flex: none;
  border-radius: 22px;
  font-size: 34px;
  color: #fff;
  background: linear-gradient(150deg, #1c82c8, #12395b);
  box-shadow: 0 14px 26px rgba(18, 57, 91, .28);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.brand-feature h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: #f2f7ff;
}

.brand-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(234, 242, 255, .6);
}

.signup-form-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 46px 24px 60px;
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 100% 0%, #eaf2ff, transparent 60%),
    radial-gradient(600px 420px at 0% 100%, #f1edff, transparent 55%),
    #f7f9fc;
}

.signup-dots {
  position: absolute;
  display: flex;
  gap: 12px;
}

.signup-dots i {
  display: block;
  border-radius: 50%;
  background: var(--bright);
  opacity: .85;
  animation: dotPulse 3s ease-in-out infinite;
}

.signup-dots i:nth-child(2) { animation-delay: .4s; }
.signup-dots i:nth-child(3) { animation-delay: .8s; }

@keyframes dotPulse {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(-6px); opacity: 1; }
}

.signup-dots i:nth-child(1) { width: 30px; height: 30px; }
.signup-dots i:nth-child(2) { width: 18px; height: 18px; align-self: flex-end; }
.signup-dots i:nth-child(3) { width: 24px; height: 24px; }

.dots-tl { top: 40px; left: 40px; }
.dots-tr { top: 40px; right: 40px; }

/* ===== below this line: filled in to complete the page — replace with the
   original rules when the rest of signup.css is available ===== */

/* --bright lives in the app's global stylesheet, which a JSP page doesn't load */
:root { --bright: #3c9cd8; }

/* the React app's global reset */
.signup-page, .signup-page * { box-sizing: border-box; }
body.signup-page { margin: 0; font-family: 'IBM Plex Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.signup-page a { text-decoration: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.signup-logo img { height: 42px; width: auto; display: block; }
.signup-logo img.page-logo-img--light { filter: brightness(0) invert(1); }

/* ---------- form card ---------- */

.signup-form {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 34px 34px 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(12, 40, 90, .12), 0 4px 14px rgba(12, 40, 90, .06);
  animation: fadeUp .6s ease both;
}

.signup-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #22b8f0, #1668c9);
}

.signup-form h1 {
  margin: 6px 0 8px;
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #7b2ff7, #5b3ee8, #0c5c9e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.signup-sub {
  margin: 0 0 18px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.5;
  color: #6b7689;
}

/* ---------- fields ---------- */

.field { display: block; margin-bottom: 15px; }

.field > span,
.field > label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #2f3b4a;
}

.field input,
.field select {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  color: #14213d;
  background: #fbfdff;
  border: 1px solid #d5deea;
  border-radius: 10px;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.field input::placeholder { color: #a7b4c4; }

/* the caret inherits white from the page, it has to be set on its own */
.signup-page input,
.signup-page textarea { caret-color: #14213d; cursor: text; }

.field input:focus,
.field select:focus {
  outline: 0;
  background: #fff;
  border-color: #3c9cd8;
  box-shadow: 0 0 0 4px rgba(60, 156, 216, .16);
}

.field input[disabled],
.field input[readonly],
.amount-field { background: #eef1f7; color: #55607a; }

.field input[type=number]::-webkit-outer-spin-button,
.field input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type=number] { -moz-appearance: textfield; }

.gst-note { font-style: normal; font-weight: 500; color: #6b7689; }

.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 46px; }
.pass-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: 6px;
  opacity: .7;
  transition: opacity .2s ease, transform .2s ease;
}
.pass-toggle:hover { opacity: 1; transform: translateY(-50%) scale(1.1); }

.field-err {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  color: #d92d20;
}

.field-msg { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; font-weight: 600; }
.field-msg.ok, .field-msg.success { color: #067647; }
.field-msg.bad, .field-msg.error { color: #d92d20; }

.submit-error {
  margin-bottom: 14px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #b3243b;
  background: #ffe1e6;
  border: 1px solid #ffc2cc;
  border-radius: 10px;
}

.plan-row { display: flex; gap: 10px; }
.plan-row select:first-of-type { flex: 1.55; }
.plan-row select:last-of-type { flex: 1; }

.promo-row { display: flex; gap: 10px; }
.promo-row input { flex: 1; }

.promo-btn {
  flex: none;
  padding: 13px 24px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0c5c9e, #0c3c54);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}
.promo-btn:hover { transform: translateY(-2px); }
.promo-btn.is-remove { background: linear-gradient(135deg, #d92d20, #8f1d14); }

/* ---------- buttons ---------- */

.signup-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
  background: linear-gradient(135deg, #0c5c9e, #0c3c54);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}
.signup-btn:hover { transform: translateY(-2px); }
.signup-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.signup-btn:hover::after { left: 130%; }

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 11px 18px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #2f3b4a;
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), border-color .25s ease, background .25s ease;
}
.google-btn:hover { transform: translateY(-2px); border-color: #b9cbe4; background: #f7fafe; }

.g-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
}

.ms-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 18px;
  height: 18px;
  flex: none;
}
.ms-mark i { display: block; width: 100%; height: 100%; }
.ms-mark i:nth-child(1) { background: #f25022; }
.ms-mark i:nth-child(2) { background: #7fba00; }
.ms-mark i:nth-child(3) { background: #00a4ef; }
.ms-mark i:nth-child(4) { background: #ffb900; }

.login-line {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  color: #4a5666;
}
.login-line a { color: #0c5c9e; font-weight: 700; }
.login-line a:hover { text-decoration: underline; }

.signup-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}
.signup-legal a {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #7a8697;
  transition: color .2s ease;
}
.signup-legal a:hover { color: #0c5c9e; }

/* ---------- responsive ---------- */

@media (max-width: 991px) {
  .signup-page { grid-template-columns: 1fr; }
  .signup-brand { order: 2; padding: 36px 28px; }
  .signup-form-wrap { order: 1; padding: 34px 18px 44px; }
  .signup-dots { display: none; }
  .brand-features { gap: 26px; margin: 22px 0 14px; }
  .brand-feature { gap: 18px; }
  .bf-art { width: 96px; }
  .brand-feature h3 { font-size: 17px; }
}

@media (max-width: 520px) {
  .signup-form { padding: 26px 20px 22px; border-radius: 14px; }
  .signup-form h1 { font-size: 26px; }
  .plan-row { flex-direction: column; }
  .promo-row { flex-wrap: wrap; }
  .promo-row input { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .signup-page *,
  .brand-blob,
  .brand-feature,
  .brand-intro,
  .signup-form,
  .signup-dots i { animation: none !important; }
  .brand-feature, .brand-intro, .signup-form { opacity: 1; transform: none; }
}

/* ===== phones ===== */

@media (max-width: 600px) {
  .signup-form-wrap { padding: 24px 14px 32px; }
  .signup-form { padding: 24px 18px 20px; border-radius: 14px; }
  .signup-form h1 { font-size: 24px; }
  .signup-sub { font-size: 13px; }

  /* 16px keeps iOS from zooming in when a field is focused */
  .field input,
  .field select { font-size: 16px; padding: 12px 14px; }

  .signup-btn,
  .google-btn { min-height: 46px; }
  .pass-toggle { padding: 10px; right: 4px; }

  /* the validate button needs its own row once the field is narrow */
  .plan-row { flex-direction: column; }
  .promo-row { flex-wrap: wrap; }
  .promo-row input { flex: 1 1 100%; }
  .promo-btn { width: 100%; padding: 12px 20px; }

  .signup-trust { font-size: 12.5px; padding: 10px 12px; }

  .signup-brand { padding: 28px 20px; }
  .brand-intro h2 { font-size: 22px; }
  .brand-intro p { font-size: 14px; }
  .brand-features { gap: 20px; margin: 20px 0 12px; }
  .brand-feature { gap: 14px; }
  .bf-art { width: 76px; }
  .brand-feature h3 { font-size: 15px; }

  /* small text links still get a finger sized tap area */
  .signup-legal a { display: inline-flex; align-items: center; min-height: 40px; }
  .login-line a { display: inline-block; padding: 8px 4px; margin: -8px -4px; }
}

@media (max-width: 400px) {
  .signup-form { padding: 20px 14px 18px; }
  .signup-form h1 { font-size: 22px; }
  .signup-brand { padding: 24px 16px; }
  .bf-art { width: 62px; }
  .brand-feature h3 { font-size: 14px; }
  .signup-legal { gap: 12px; }
}

/* touch screens: a tap must not be spent on a hover lift or shine */
@media (hover: none) {
  .signup-btn:hover,
  .google-btn:hover,
  .promo-btn:hover { transform: none; }
  .signup-btn:hover::after { left: -120%; }
}

/* ---------- plan chooser: radios driving the hidden selects ---------- */

.plan-selects-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cycle-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.cycle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #5b6675;
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 999px;
  cursor: pointer;
}

.cycle-pill.is-on {
  color: #0c5c9e;
  border-color: #3c9cd8;
  background: #eef6fd;
}

.plan-choices { display: flex; flex-direction: column; gap: 8px; }

.plan-choice-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  background: #fbfdff;
  border: 1px solid #d5deea;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.plan-choice-card:hover { border-color: #b9cbe4; }

.plan-choice-card.is-on {
  border-color: #3c9cd8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(60, 156, 216, .14);
}

.plan-choice-card input { margin: 0; flex: none; }
.plan-choice-name { font-size: 14.5px; font-weight: 600; color: #14213d; }

@media (max-width: 600px) {
  .plan-choice-card { padding: 12px; }
  .cycle-pill { padding: 8px 14px; }
}

/* .field input styles every input in the block as a text box - radios must opt out */
.plan-choice-card input[type="radio"],
.cycle-pill input[type="radio"] {
  width: auto;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  box-shadow: none;
  flex: none;
  accent-color: #3c9cd8;
}

.plan-choice-card input[type="radio"]:focus,
.cycle-pill input[type="radio"]:focus {
  box-shadow: none;
  outline: 2px solid #3c9cd8;
  outline-offset: 2px;
}

.plan-choice-name { flex: 1; }

/* autopay opt in, sits just above the sign up button */
.autopay-optin {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #d9e6f2;
  border-radius: 8px;
  background: #f5faff;
  font-size: 12.5px;
  line-height: 1.45;
  color: #33506e;
  cursor: pointer;
}

.autopay-optin input[type="checkbox"] {
  width: auto;
  flex: none;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  accent-color: #3c9cd8;
}
