/* [rp_register] — step-by-step customer registration. Uses the portal tokens (--rp-primary …) and type scale (--rp-fs-*) so it follows the site's design system. */
.rp-reg{--rp-reg-h:44px;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);min-height:560px;max-width:980px;margin:24px auto;border-radius:18px;overflow:hidden;box-shadow:0 14px 44px rgba(15,26,58,.13);background:#fff;font-family:inherit;font-size:var(--rp-fs-sm,13px);line-height:1.5;color:var(--rp-text,#0F1A3A)}
.rp-reg *{box-sizing:border-box}.rp-reg h1,.rp-reg h2,.rp-reg p{margin:0}.rp-reg [hidden]{display:none!important}

/* hero */
.rp-reg-hero{position:relative;display:flex;flex-direction:column;justify-content:center;padding:32px 28px;color:#fff;background:linear-gradient(160deg,var(--rp-sidebar-bg,#0B1C4A),var(--rp-primary,#2563EB));background-size:cover;background-position:center}
.rp-reg-hero h1{font-size:clamp(20px,2.3vw,25px);font-weight:700;line-height:1.25;margin-bottom:8px;color:#fff;letter-spacing:-.01em}
.rp-reg-hero>p{opacity:.88;line-height:1.55;max-width:34ch;font-size:var(--rp-fs-sm,13px)}
.rp-reg-art{margin:22px 0 4px;width:100%;max-width:300px;opacity:.95}
.rp-reg-points{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:8px}
.rp-reg-points li{display:flex;align-items:center;gap:9px;font-weight:600;font-size:var(--rp-fs-sm,13px)}.rp-reg-points span{width:20px;height:20px;border-radius:50%;background:#22c55e;display:flex;align-items:center;justify-content:center;flex:none}

/* card + progress */
.rp-reg-card{position:relative;padding:26px 32px 28px;display:flex;flex-direction:column;justify-content:center;background:#fff;min-width:0}
.rp-reg-progress{list-style:none;margin:0 0 22px;padding:0;display:flex;justify-content:space-between;position:relative}
.rp-reg-progress:before{content:"";position:absolute;left:8%;right:8%;top:11px;height:2px;background:var(--rp-border,#E8ECF4)}
.rp-reg-progress li{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:var(--rp-fs-xs,12px);color:var(--rp-muted,#6B7794);flex:1;min-width:0}
.rp-reg-dot{width:24px;height:24px;border-radius:50%;background:#fff;border:2px solid var(--rp-border,#cfd6e6);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:11px;z-index:1}
.rp-reg-progress .is-done .rp-reg-dot{background:var(--rp-primary-l,#dbe7ff);border-color:var(--rp-primary,#2563EB);color:var(--rp-primary,#2563EB)}
.rp-reg-progress .is-active .rp-reg-dot{background:var(--rp-primary,#2563EB);border-color:var(--rp-primary,#2563EB);color:#fff}
.rp-reg-progress .is-active .rp-reg-lbl{color:var(--rp-text,#0F1A3A);font-weight:700}
.rp-reg-lbl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

.rp-reg-step{display:grid;gap:12px;animation:rpRegIn .25s ease}
@keyframes rpRegIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.rp-reg-step h2{font-size:var(--rp-fs-h2,20px);font-weight:700;line-height:1.3}
.rp-reg-sub{color:var(--rp-muted,#6B7794);margin-top:-6px;font-size:var(--rp-fs-sm,13px)}
.rp-reg-error{margin:-6px 0 12px;padding:9px 12px;border-radius:9px;background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;font-size:var(--rp-fs-sm,13px)}
.rp-reg-error a{color:inherit;font-weight:700;text-decoration:underline}

/* fields: every input sits in a .rp-reg-group so hints and errors always render directly beneath it */
.rp-reg-group{position:relative;display:block;min-width:0}
.rp-reg-field{display:flex;align-items:center;gap:9px;border:1.5px solid var(--rp-border,#dbe2ef);border-radius:10px;padding:0 12px;background:#fff;min-height:var(--rp-reg-h);position:relative;transition:border-color .15s,box-shadow .15s;margin:0}
.rp-reg-field:focus-within{border-color:var(--rp-primary,#2563EB);box-shadow:0 0 0 3px var(--rp-primary-l,#dbe7ff)}
.rp-reg-ico{color:var(--rp-muted,#6B7794);display:flex;flex:none}.rp-reg-ico svg{width:17px;height:17px}
.rp-reg-field input,.rp-reg-field select{flex:1;min-width:0;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;font:inherit;font-size:var(--rp-fs-base,14px);color:inherit;padding:0!important;height:calc(var(--rp-reg-h) - 3px)!important;margin:0!important}
.rp-reg-group.has-error>.rp-reg-field{border-color:#dc2626;box-shadow:none}

/* password fields: the box is the input itself (or the .rp-pw-wrap rp-password.js puts around it); meter + match hint follow it */
.rp-reg-pw>.rp-reg-ico{position:absolute;left:12px;top:0;height:var(--rp-reg-h);align-items:center;z-index:2;pointer-events:none}
.rp-reg-pw>input,.rp-reg-pw>.rp-pw-wrap{display:block;width:100%;min-height:var(--rp-reg-h);border:1.5px solid var(--rp-border,#dbe2ef);border-radius:10px;background:#fff;margin:0;transition:border-color .15s,box-shadow .15s}
.rp-reg-pw>input{padding:0 12px 0 38px!important;height:var(--rp-reg-h)!important;font:inherit;font-size:var(--rp-fs-base,14px);color:inherit;box-shadow:none}
.rp-reg-pw>.rp-pw-wrap{padding:0 0 0 38px}
.rp-reg-pw>.rp-pw-wrap>input{display:block;width:100%;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;height:calc(var(--rp-reg-h) - 3px)!important;padding:0 42px 0 0!important;margin:0!important;font:inherit;font-size:var(--rp-fs-base,14px);color:inherit}
.rp-reg-pw>.rp-pw-wrap .rp-pw-toggle{right:3px;width:34px;height:34px;min-width:34px}
.rp-reg-pw>input:focus,.rp-reg-pw>.rp-pw-wrap:focus-within{border-color:var(--rp-primary,#2563EB);box-shadow:0 0 0 3px var(--rp-primary-l,#dbe7ff);outline:0}
.rp-reg-pw.has-error>input,.rp-reg-pw.has-error>.rp-pw-wrap{border-color:#dc2626;box-shadow:none}
.rp-reg-pw .rp-pw-meter,.rp-reg-pw .rp-pw-match{margin:8px 2px 0;font-size:var(--rp-fs-xs,12px)}
.rp-reg-pw .rp-pw-match{margin-top:6px}
.rp-reg-pw .rp-pw-bars{margin-bottom:5px}
.rp-reg-pw .rp-pw-tips li:nth-child(n+3){display:none}   /* keep the hint compact: the two most useful tips */

/* inline, field-specific messages */
.rp-reg-ferr{margin:5px 2px 0;font-size:var(--rp-fs-xs,12px);font-weight:600;color:#b91c1c;line-height:1.4}
.rp-reg-ferr a{color:inherit;text-decoration:underline}

.rp-reg-select{flex-wrap:wrap;padding-top:5px;padding-bottom:5px}.rp-reg-select small{flex:0 0 calc(100% - 28px);order:1;margin-left:26px;margin-bottom:-4px;color:var(--rp-muted,#6B7794);font-size:11px;position:static}
.rp-reg-select .rp-reg-ico{position:absolute;left:12px;top:50%;transform:translateY(-50%)}.rp-reg-select select,.rp-reg-select input{order:2;margin-left:26px!important;height:30px!important}
.rp-reg-select select{font-weight:600;appearance:auto}
.rp-reg-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.rp-reg-lab{display:block;font-weight:600;font-size:var(--rp-fs-sm,13px);margin:0 0 6px}.rp-reg-center{text-align:center;margin:0}
.rp-reg-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.rp-reg-opt{display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 6px;border:1.5px solid var(--rp-border,#dbe2ef);border-radius:10px;background:#fff;font:inherit;font-size:var(--rp-fs-sm,13px);font-weight:600;cursor:pointer;color:inherit}
.rp-reg-opt[aria-checked=true]{border-color:var(--rp-primary,#2563EB);background:var(--rp-primary-l,#eaf1ff);color:var(--rp-primary,#2563EB)}
.rp-reg-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.rp-reg-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;min-height:88px;padding:10px 6px;border:1.5px solid var(--rp-border,#dbe2ef);border-radius:10px;background:#fff;font:inherit;font-weight:600;font-size:var(--rp-fs-sm,13px);cursor:pointer;color:inherit;transition:all .15s}
.rp-reg-tile svg{color:var(--rp-primary,#2563EB);width:26px;height:26px}.rp-reg-tile:hover{border-color:var(--rp-primary,#2563EB)}
.rp-reg-tile[aria-pressed=true]{border-color:var(--rp-primary,#2563EB);background:var(--rp-primary-l,#eaf1ff);box-shadow:0 0 0 2px var(--rp-primary,#2563EB) inset}

/* buttons */
.rp-reg-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 22px;border-radius:10px;border:1.5px solid transparent;font:inherit;font-size:var(--rp-fs-base,14px);font-weight:600;cursor:pointer;text-decoration:none;transition:filter .15s,transform .1s;line-height:1.2}
.rp-reg-btn-primary{background:var(--rp-primary,#2563EB);color:#fff}.rp-reg-btn-primary:hover{filter:brightness(.94);color:#fff}
.rp-reg-btn-ghost{background:#fff;border-color:var(--rp-border,#dbe2ef);color:inherit}.rp-reg-btn-social{background:#f3f4f6;border-color:var(--rp-border,#dbe2ef);color:inherit;width:100%}
.rp-reg-btn-block{width:100%}.rp-reg-btn-pill{border-radius:999px;padding:11px 28px}
.rp-reg-btn[disabled]{opacity:.6;cursor:progress}.rp-reg-btn.is-loading:after{content:"";width:13px;height:13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:rpRegSpin .7s linear infinite}
@keyframes rpRegSpin{to{transform:rotate(360deg)}}
.rp-reg-nav{display:flex;justify-content:space-between;gap:12px;margin-top:4px}
.rp-reg-or{display:flex;align-items:center;gap:12px;color:var(--rp-muted,#6B7794);font-size:var(--rp-fs-sm,13px)}.rp-reg-or:before,.rp-reg-or:after{content:"";flex:1;height:1px;background:var(--rp-border,#e5e9f2)}
.rp-reg-social{display:grid;gap:10px}
.rp-reg-foot{text-align:center;font-size:var(--rp-fs-sm,13px);color:var(--rp-text,#0F1A3A)}.rp-reg-foot a,.rp-reg-link{color:var(--rp-primary,#2563EB);font-weight:600;text-decoration:none;background:none;border:0;padding:0;font:inherit;font-weight:600;cursor:pointer}
.rp-reg-link[disabled]{color:var(--rp-muted,#6B7794);cursor:default}
.rp-reg-mailico{display:flex;justify-content:center;color:var(--rp-primary,#2563EB)}.rp-reg-mailico svg{width:36px;height:36px}
.rp-reg-code{display:flex;justify-content:center;gap:8px}
.rp-reg-code input{width:44px;height:50px;text-align:center;font-size:20px;font-weight:700;border:1.5px solid var(--rp-border,#dbe2ef);border-radius:10px;background:#fff;color:inherit;padding:0}
.rp-reg-code input:focus{outline:0;border-color:var(--rp-primary,#2563EB);box-shadow:0 0 0 3px var(--rp-primary-l,#dbe7ff)}.rp-reg-code.has-error input{border-color:#dc2626}
.rp-reg-step>.rp-reg-ferr{text-align:center;margin-top:-4px}
.rp-reg-done{text-align:center;justify-items:center;position:relative;padding-top:8px}
.rp-reg-tick{width:68px;height:68px;border-radius:50%;background:#16a34a;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(22,163,74,.32)}.rp-reg-tick svg{width:34px;height:34px}
.rp-reg-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.rp-reg-confetti i{position:absolute;top:-10px;left:calc(var(--i)*5.5%);width:8px;height:14px;background:hsl(calc(var(--i)*47),85%,58%);border-radius:2px;animation:rpRegFall 2.4s ease-in calc(var(--i)*.07s) 1 both}
@keyframes rpRegFall{to{transform:translateY(340px) rotate(540deg);opacity:0}}

/* tablet / phone */
@media(max-width:860px){
  .rp-reg{grid-template-columns:1fr;border-radius:14px;margin:12px;min-height:0}
  .rp-reg-hero{padding:18px 20px}.rp-reg-hero h1{font-size:19px;margin-bottom:0}.rp-reg-art,.rp-reg-hero>p{display:none}
  .rp-reg-points{margin-top:12px;grid-auto-flow:column;justify-content:start;gap:14px;font-size:12px}.rp-reg-points li{font-size:12px}
  .rp-reg-card{padding:22px 18px 24px}
}
@media(max-width:520px){
  .rp-reg{margin:8px;border-radius:12px}
  .rp-reg-row{grid-template-columns:1fr}.rp-reg-seg{grid-template-columns:1fr}.rp-reg-tiles{grid-template-columns:1fr 1fr}
  .rp-reg-points{grid-auto-flow:row;gap:6px}
  .rp-reg-progress:before{left:9%;right:9%}.rp-reg-lbl{font-size:10px}.rp-reg-card{padding:20px 14px 22px}
  .rp-reg-code{gap:6px}.rp-reg-code input{width:40px;height:46px}
  .rp-reg-nav .rp-reg-btn{padding:11px 16px}
  /* 16px inputs stop iOS zooming the page on focus */
  .rp-reg-field input,.rp-reg-field select,.rp-reg-pw>input,.rp-reg-pw>.rp-pw-wrap>input{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.rp-reg-step,.rp-reg-confetti i{animation:none}}
