/* ============================================================
   GoldCoast RP - Register (two-step wizard)
   ============================================================ */
:root {
  --ink: #14101a;
  --muted: #8b8394;
  --label: #4a4453;
  --pink: #e6197a;
  --pink-bright: #ff2d9b;
  --orange: #ff7a2f;
  --grad: linear-gradient(90deg, #e6197a 0%, #ff4b7d 45%, #ff7a2f 100%);
  --field-bg: #f7f5fa;
  --field-border: #ece9f1;
  --radius-card: 26px;
  --radius-field: 14px;
  --font: 'Lato', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body.rp-auth {
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  min-height: 100vh;
  /* pure sunset gradient - no image */
  background:
    radial-gradient(1100px 700px at 68% 104%, rgba(255, 122, 47, .55), rgba(255, 122, 47, 0) 68%) fixed,
    radial-gradient(900px 600px at 14% -6%, rgba(96, 20, 148, .6), rgba(96, 20, 148, 0) 70%) fixed,
    linear-gradient(152deg, #150836 0%, #340f60 32%, #74178c 57%, #c01f8a 80%, #ff7a2f 100%) fixed,
    #180b3e;
  -webkit-font-smoothing: antialiased;
}

.rp-shell { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------------- top bar ---------------- */
.rp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 48px 10px;
}
.rp-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.rp-brand img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5));
}
.rp-brand-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .05em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.rp-brand-name b { color: var(--pink-bright); font-weight: 900; }

/* right side of the top bar: signed-in escape hatch + tagline */
.rp-top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.rp-account { display: inline-flex; align-items: center; gap: 12px; }
.rp-account-name {
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .8);
}
.rp-account-name b { color: #fff; font-weight: 900; }
.rp-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.rp-logout:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .6);
  transform: translateY(-1px);
}
.rp-logout svg { flex: 0 0 auto; }

.rp-tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .92);
  text-transform: uppercase;
}
.rp-tagline em {
  font-style: normal;
  color: var(--pink-bright);
  border-bottom: 2px solid rgba(255, 45, 155, .55);
  padding-bottom: 2px;
}

/* ---------------- layout ---------------- */
.rp-main {
  flex: 1;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 34px 48px 60px;
  display: grid;
  grid-template-columns: 1fr minmax(460px, 600px);
  gap: 48px;
  align-items: center;
}

/* ---------------- promo column ---------------- */
.rp-promo { color: #fff; }
.rp-roundback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  text-decoration: none;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .32);
  color: #fff;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.rp-roundback:hover { background: rgba(255, 255, 255, .22); transform: translateX(-2px); }

.rp-title {
  font-size: clamp(52px, 6.2vw, 96px);
  line-height: .9;
  font-weight: 900;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  margin-bottom: 22px;
}
.rp-title span {
  background: linear-gradient(92deg, #ffb13d 0%, var(--orange) 42%, var(--pink-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.rp-lead {
  font-size: 17px;
  line-height: 1.62;
  max-width: 470px;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

/* ---------------- card ---------------- */
.rp-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px 36px 28px;
  box-shadow: 0 40px 100px rgba(16, 0, 40, .42);
}

.rp-steps { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.rp-step-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}
.rp-progress { flex: 1; display: flex; gap: 8px; height: 6px; }
.rp-seg { flex: 1; background: #ece9f1; border-radius: 999px; transition: background .2s ease; }
.rp-seg.is-on { background: var(--grad); }

.rp-error {
  background: #fdebf3;
  border: 1px solid #f7bfd7;
  color: #b4175e;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.rp-h2 {
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.rp-h2 span { color: var(--pink-bright); }
.rp-sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }

/* ---------------- fields ---------------- */
.rp-field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-field);
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: border-color .15s ease, background-color .15s ease;
}
.rp-field:focus-within { border-color: #ffb0d3; background: #fff; }
.rp-ico { color: #9aa0ad; flex: 0 0 auto; display: inline-flex; }
.rp-field-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rp-field-label { font-size: 12.5px; font-weight: 700; color: var(--label); margin-bottom: 2px; }

.rp-field input,
.rp-field select,
.rp-dob select {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 0;
}
.rp-field input::placeholder { color: #a9a2b2; }
.rp-field select,
.rp-dob select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239AA0AD' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 22px;
  cursor: pointer;
}

.rp-eye {
  background: none;
  border: none;
  color: #9aa0ad;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  flex: 0 0 auto;
}
.rp-eye:hover { color: var(--pink-bright); }
.rp-eye .rp-eye-slash { display: none; }
.rp-eye.is-on .rp-eye-slash { display: block; }

/* ---------------- step 2 groups ---------------- */
.rp-group { margin-bottom: 16px; }
.rp-group-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--label); margin-bottom: 8px; }

.rp-dob {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-field);
  padding: 12px 14px;
}
.rp-dob:focus-within { border-color: #ffb0d3; background: #fff; }
.rp-dob-ico { margin-right: 4px; }
.rp-dob input { border: none; background: transparent; outline: none; font-family: inherit; }
.rp-selectwrap { flex: 1; min-width: 0; }

/* ---------------- terms + buttons ---------------- */
.rp-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #5c5566;
  margin: 16px 0 18px;
  cursor: pointer;
}
.rp-terms input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: var(--pink-bright);
  cursor: pointer;
}
.rp-terms a { color: var(--pink-bright); text-decoration: underline; }

.rp-cta {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: var(--radius-field);
  padding: 16px 52px;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.rp-cta:hover { filter: brightness(1.07); }
.rp-cta:active { transform: translateY(1px); }
.rp-cta svg { position: absolute; right: 20px; }

.rp-actions { display: flex; gap: 12px; align-items: stretch; }
.rp-cta--inline { flex: 1; width: auto; }

.rp-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #fff;
  border: 1px solid #e4e0ea;
  border-radius: var(--radius-field);
  padding: 16px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--ink);
  cursor: pointer;
}
.rp-btn-back:hover { background: #f7f5fa; }

.rp-foot {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f1eef5;
}
.rp-foot a { color: var(--pink-bright); text-decoration: none; }
.rp-foot a:hover { text-decoration: underline; }

/* ---------------- responsive ---------------- */
@media (max-width: 1180px) {
  .rp-main { grid-template-columns: 1fr; gap: 28px; padding: 20px 32px 48px; }
  .rp-promo { padding: 0; }
  .rp-title { font-size: clamp(42px, 9vw, 68px); }
  .rp-lead { max-width: none; }
  .rp-top { padding: 22px 32px 0; }
  .rp-roundback { margin-bottom: 20px; }
}
@media (max-width: 640px) {
  .rp-top { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 18px 0; }
  .rp-top-right { justify-content: flex-start; }
  .rp-account-name { display: none; }
  .rp-main { padding: 16px 18px 36px; }
  .rp-brand img { height: 44px; }
  .rp-brand-name { font-size: 20px; }
  .rp-card { padding: 24px 20px 22px; border-radius: 20px; }
  .rp-h2 { font-size: 23px; }
  .rp-dob { flex-wrap: wrap; }
  .rp-selectwrap { flex: 1 1 40%; }
  .rp-actions { flex-direction: column; }
  .rp-btn-back { width: 100%; }
}
