/* WhatSales sign-up page (register.aspx). Loads after content/login.css and only adds what sign-up needs. */

/* ------------------------------------------------------------------ form side */

.is-register .lg-center { padding: 26px 0; }
.is-register .lg-sub { margin-bottom: 22px; }
.is-register .lg-title { font-size: clamp(30px, 3vw, 40px); }

.rg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* country + currency: real selects with the floating label kept up */
.lg-field.rg-select select.lg-input {
    width: 100%;
    height: 58px;
    padding: 22px 34px 6px 46px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font: 600 15px/1.2 Lato, system-ui, sans-serif;
    color: var(--ink);
    outline: none;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s, box-shadow .2s;
}
.lg-field.rg-select select.lg-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 167, 225, .14); }
.lg-field.rg-select.is-bad select.lg-input { border-color: #fca5a5; }
.lg-field.rg-select label { top: 17px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--brand-deep); }
.lg-field.rg-select > i.lg-ico { color: var(--brand); }
.rg-caret {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
}
.rg-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: -6px 2px 14px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
}
.rg-hint i { color: var(--brand); font-size: 14px; margin-top: 1px; flex: none; }

/* password strength */
.rg-strength {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 5px;
    align-items: center;
    margin: -6px 2px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}
.rg-strength i {
    display: block;
    height: 5px;
    border-radius: 4px;
    background: #e2e8f0;
    transition: background .3s;
}
.rg-strength span { min-width: 92px; text-align: right; transition: color .3s; }
.rg-strength[data-level="1"] i:nth-child(-n+1) { background: #ef4444; }
.rg-strength[data-level="2"] i:nth-child(-n+2) { background: #f59e0b; }
.rg-strength[data-level="3"] i:nth-child(-n+3) { background: #22c55e; }
.rg-strength[data-level="4"] i:nth-child(-n+4) { background: #10b981; }
.rg-strength[data-level="1"] span { color: #dc2626; }
.rg-strength[data-level="2"] span { color: #d97706; }
.rg-strength[data-level="3"] span,
.rg-strength[data-level="4"] span { color: #059669; }

.lg-field-msg {
    display: none;
    font-size: 12.5px;
    font-weight: 700;
    color: #b91c1c;
    margin: -8px 0 12px 4px;
}
.lg-field.is-bad + .lg-field-msg { display: block; }

/* phone: intl-tel-input wraps the input; its flag sits where the icon would */
.rg-phone .iti { width: 100%; display: block; }
.rg-phone .iti__flag-container { top: 0; bottom: 0; padding: 0; z-index: 2; }
.rg-phone .iti__selected-flag {
    padding: 18px 8px 0 16px;
    border-radius: var(--radius) 0 0 var(--radius);
    background: transparent !important;
}
.rg-phone .iti__selected-flag:hover { background: rgba(0, 0, 0, .03) !important; }
.lg-field.rg-phone input.lg-input { padding-left: 62px !important; padding-right: 14px; }
.lg-field.rg-phone label { left: 63px; top: 17px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--brand-deep); }
.lg-field.rg-phone input.lg-input::placeholder { color: #b6c2d1; }
/* the searchable picker sits over the flag; intl-tel-input's own list is switched off */
.rg-phone .rg-phone-cc { position: absolute; inset: 0; border-radius: var(--radius) 0 0 var(--radius); }
.rg-phone .rg-phone-cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.rg-phone .rg-phone-cc .wsp-hit { border-radius: var(--radius) 0 0 var(--radius); }
.rg-phone .rg-phone-cc:hover { background: rgba(0, 0, 0, .03); }
.rg-phone .rg-phone-caret { position: absolute; right: 2px; top: 30px; font-size: 11px; color: #94a3b8; pointer-events: none; transition: transform .25s; }
.rg-phone .rg-phone-cc.is-open .rg-phone-caret { transform: rotate(180deg); }
.rg-phone .iti__flag-container { width: 56px; left: 0; right: auto; } /* iti puts it on the right when its own list is off */
.rg-phone .iti__arrow { display: none; }

.rg-phone .iti__country-list {
    z-index: 30;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 48px -20px rgba(15, 27, 45, .35);
    font-size: 14px;
    max-width: 360px;
    white-space: normal;
}
.rg-phone .iti__country { padding: 7px 12px; }
.rg-phone .iti__country.iti__highlight { background: rgba(0, 167, 225, .08); }

.rg-perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin-top: 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-2);
}
.rg-perks span { display: inline-flex; align-items: center; gap: 5px; }
.rg-perks i { color: var(--ok); font-size: 15px; }

.rg-terms {
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #94a3b8;
    text-align: center;
}
.rg-terms a { color: var(--muted); font-weight: 700; }

/* reCAPTCHA: the badge is hidden and the disclosure is in .rg-terms, as Google allows */
.grecaptcha-badge { visibility: hidden !important; }

/* joined-up proof under the form */
.rg-join {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
    font-size: 13px;
    color: var(--muted);
}
.rg-faces { display: flex; }
.rg-faces b {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 10.5px;
    font-weight: 900;
    color: #04121f;
    border: 2px solid #fff;
    margin-left: -8px;
}
.rg-faces b:first-child { margin-left: 0; }
.rg-join strong { color: var(--ink); }

/* success */
.rg-done {
    display: none;
    text-align: center;
    padding: 30px 0 10px;
}
.rg-done.is-on { display: block; animation: lg-rise .5s var(--ease); }
.rg-done-badge {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 38px;
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, .12), 0 18px 36px -14px rgba(5, 150, 105, .8);
    animation: rg-pop .6s var(--spring);
}
@keyframes rg-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.rg-done h2 { font-size: 30px; font-weight: 900; letter-spacing: -.03em; margin: 0 0 8px; color: var(--ink); }
.rg-done p { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.rg-done-steps { display: grid; gap: 10px; text-align: left; max-width: 300px; margin: 0 auto; }
.rg-done-steps div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-2);
    opacity: .35;
    transition: opacity .3s;
}
.rg-done-steps div i { font-size: 18px; color: #cbd5e1; transition: color .3s; }
.rg-done-steps div.is-on { opacity: 1; }
.rg-done-steps div.is-on i { color: var(--ok); }

/* ------------------------------------------------------------------ showcase: first-day steps */

.rg-section-h {
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7f93aa;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rg-section-h i { color: var(--brand-2); font-size: 14px; }

.rg-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.rg-step {
    position: relative;
    padding: 14px 14px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: background .5s, border-color .5s, transform .5s var(--ease), box-shadow .5s;
    min-height: 152px;
    display: flex;
    flex-direction: column;
}
.rg-step.is-on {
    background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
    border-color: rgba(56, 189, 248, .35);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -24px rgba(0, 167, 225, .55);
}
.rg-step-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rg-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
    color: #8ea3bb;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    transition: background .4s, color .4s, border-color .4s;
    flex: none;
}
.rg-num .ph-check { display: none; }
.rg-step.is-on .rg-num { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px rgba(0, 167, 225, .18); }
.rg-step.is-done .rg-num { background: #10b981; border-color: #10b981; color: #fff; }
.rg-step.is-done .rg-num b { display: none; }
.rg-step.is-done .rg-num .ph-check { display: block; }
.rg-step h4 { margin: 0; font-size: 15px; font-weight: 900; color: #fff; letter-spacing: -.01em; }
.rg-step p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: #9fb2c8; }
.rg-vis2 { margin-top: auto; }

/* step 1: marketplaces light up */
.rg-mks { display: flex; flex-wrap: wrap; gap: 5px; }
.rg-mks span {
    font-size: 10.5px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 999px;
    color: #8ea3bb;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: color .3s, background .3s, border-color .3s;
}
.rg-step.is-on .rg-mks span,
.rg-step.is-done .rg-mks span { animation: rg-lit .35s forwards; }
.rg-step.is-done .rg-mks span { animation-delay: 0s !important; }
@keyframes rg-lit { to { color: #d1fae5; background: rgba(16, 185, 129, .16); border-color: rgba(16, 185, 129, .4); } }

/* step 2: sync bar */
.rg-sync { display: grid; gap: 6px; }
.rg-sync-bar { height: 7px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.rg-sync-bar i {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--brand), #a78bfa);
    transform: scaleX(0);
    transform-origin: left;
}
.rg-step.is-on .rg-sync-bar i { animation: lg-growx 2.4s var(--ease) forwards; }
.rg-step.is-done .rg-sync-bar i { transform: none; }
.rg-sync-items { display: flex; gap: 10px; font-size: 11px; font-weight: 700; color: #7f93aa; }
.rg-sync-items span { display: inline-flex; align-items: center; gap: 4px; transition: color .3s; }
.rg-sync-items i { font-size: 12px; opacity: 0; transition: opacity .3s; color: #6ee7b7; }
.rg-step.is-on .rg-sync-items span { animation: rg-sync-txt .3s forwards; }
.rg-step.is-on .rg-sync-items span i { animation: lg-fade .3s forwards; }
.rg-step.is-on .rg-sync-items span:nth-child(1), .rg-step.is-on .rg-sync-items span:nth-child(1) i { animation-delay: .7s; }
.rg-step.is-on .rg-sync-items span:nth-child(2), .rg-step.is-on .rg-sync-items span:nth-child(2) i { animation-delay: 1.4s; }
.rg-step.is-on .rg-sync-items span:nth-child(3), .rg-step.is-on .rg-sync-items span:nth-child(3) i { animation-delay: 2.1s; }
.rg-step.is-done .rg-sync-items span { color: #d6e3f1; }
.rg-step.is-done .rg-sync-items i { opacity: 1; }
@keyframes rg-sync-txt { to { color: #d6e3f1; } }

/* step 3: profit line */
.rg-grow { position: relative; height: 44px; }
.rg-grow svg { width: 100%; height: 100%; overflow: visible; }
.rg-grow .ln { fill: none; stroke: #34d399; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.rg-grow .ar { fill: url(#rgGrowGrad); opacity: 0; }
.rg-step.is-on .rg-grow .ln { animation: lg-draw 1.6s var(--ease) forwards; }
.rg-step.is-on .rg-grow .ar { animation: lg-fade .8s .8s forwards; }
.rg-grow .tag { position: absolute; right: 0; top: -4px; opacity: 0; transform: translateY(4px); }
.rg-step.is-on .rg-grow .tag { animation: lg-pop .45s 1.4s var(--spring) forwards; }

/* ------------------------------------------------------------------ showcase: included modules */

.rg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.rg-tile {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .07);
    transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.rg-tile:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); }
.rg-tile > i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 16%, transparent);
    flex: none;
}
.rg-tile b { display: block; font-size: 13px; color: #fff; font-weight: 900; }
.rg-tile span { display: block; font-size: 11.5px; color: #8ea3bb; font-weight: 700; line-height: 1.3; }

/* ------------------------------------------------------------------ responsive */

@media (min-width: 1024px) and (max-height: 1019px) {
    .is-register .lg-center { padding: 12px 0; }
    .is-register .lg-eyebrow { display: none; }
    .rg-join { display: none; }
    .is-register .lg-field { margin-bottom: 12px; }
    .is-register .lg-field input.lg-input,
    .is-register .lg-field.rg-select select.lg-input { height: 54px; }
    .is-register .lg-eyebrow { margin-bottom: 12px; }
    .is-register .lg-sub { margin-bottom: 18px; }
    .is-register .lg-hero p { display: none; }
    .rg-step p { display: none; }
    .rg-step { min-height: 0; }
    .rg-step-top { margin-bottom: 10px; }
    .rg-tile span { display: none; }
}
@media (min-width: 1024px) and (max-height: 800px) {
    .is-register .lg-hero p { display: block; }
    .rg-included { display: none; }
    .is-register .lg-eyebrow { display: none; }
    .rg-join { display: none; }
}

@media (max-width: 1279px) {
    .rg-grid { grid-template-columns: repeat(2, 1fr); }
    .rg-step p { display: none; }
    .rg-step { min-height: 0; }
}

@media (max-width: 1023px) {
    .rg-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .rg-steps { grid-template-columns: 1fr; }
    .rg-step p { display: block; }
    .rg-grid { grid-template-columns: 1fr 1fr; }
    .rg-tile span { display: none; }
    .rg-perks { justify-content: flex-start; }
    .rg-pair { grid-template-columns: 1fr; gap: 0; }
}
