/* ===========================================================================
   rx-signup.css — the signup page in the Magma Solutions page shape.

   /signup is the third page of the marketing set (the landing, /pricing and
   this one) and it is the app's own form: src/views/signup.view prints the
   heading, the six fields, the note line, the button and the trial line, and
   its endpoint does the work. Nothing here changes a field, an id, a name or
   where the form posts; it only gives the page the identity's dress:

       the dark ground of the .ld shell (js/rx-identity.js puts the class on),
       one glass card with a lit top edge, an amber rule over the heading, a
       white display heading, labels in the identity's body colour, fields in
       glass with an amber focus ring, the amber primary button, and the trial
       line quiet under the card with amber links.

   Everything is scoped to html.rx-ld-home .ld-signup, so no dashboard, no till
   and no storefront — which share .ms-field / .ms-input / .ms-note — is
   touched by a single rule in this file.
   ========================================================================== */

/* ------------------------------- the band -------------------------------- */

html.rx-ld-home .ld-signup .su-band {
    background-color: transparent;
    background-image: none;
    padding: 52px 0 68px;
}

/* --------------------------------- the card ------------------------------- */

html.rx-ld-home .ld-signup .su-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 38px 34px 32px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 22px;
    background-color: rgba(255, 255, 255, .045);
    background-image:
        radial-gradient(120% 90% at 100% 0%, rgba(255, 122, 24, .10), rgba(255, 122, 24, 0) 58%),
        linear-gradient(170deg, rgba(26, 16, 48, .82), rgba(9, 5, 18, .88));
    box-shadow: 0 40px 80px -60px rgba(0, 0, 0, .9);
}

/* the lit hairline along the card's top edge */
html.rx-ld-home .ld-signup .su-card::before {
    content: "";
    position: absolute;
    inset-inline: 1px;
    top: 0;
    height: 1px;
    border-radius: inherit;
    background: linear-gradient(to var(--rx-x-end, right),
            rgba(255, 122, 24, .75) 0%,
            rgba(139, 92, 246, .4) 46%,
            rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* the amber rule over the heading, in place of a kicker line */
html.rx-ld-home .ld-signup .su-title::before {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin: 0 0 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #FF7A18, #FFA53C);
}

html.rx-ld-home .ld-signup .su-title {
    margin: 0;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: clamp(25px, 3.4vw, 36px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: #FFFFFF;
    text-align: start;
}

html.rx-ld-home .ld-signup .su-sub {
    margin: 12px 0 0;
    max-width: 46ch;
    font-size: 15px;
    line-height: 1.65;
    color: #C9C3DC;
    text-align: start;
}

/* -------------------------------- the fields ------------------------------ */

html.rx-ld-home .ld-signup .su-form {
    margin-top: 26px;
}

html.rx-ld-home .ld-signup .ms-label {
    font-family: var(--rx-body, Poppins, sans-serif);
    font-size: 12.5px;
    font-weight: 600;
    color: #C9C3DC;
}

html.rx-ld-home .ld-signup .ms-hint {
    font-size: 12px;
    color: #8E86A8;
}

html.rx-ld-home .ld-signup .ms-input {
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    color: #FFFFFF;
    font-size: 14.5px;
    caret-color: #FFA53C;
}

html.rx-ld-home .ld-signup .ms-input::placeholder {
    color: rgba(201, 195, 220, .58);
}

html.rx-ld-home .ld-signup .ms-input:hover {
    border-color: rgba(255, 255, 255, .22);
}

html.rx-ld-home .ld-signup .ms-input:focus {
    outline: 0;
    border-color: rgba(255, 122, 24, .8);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, .18);
    background: rgba(255, 255, 255, .07);
}

/* the browser's own autofill paint would turn a field white */
html.rx-ld-home .ld-signup .ms-input:-webkit-autofill,
html.rx-ld-home .ld-signup .ms-input:-webkit-autofill:hover,
html.rx-ld-home .ld-signup .ms-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #FFFFFF;
    -webkit-box-shadow: 0 0 0 60px #1B1233 inset;
    box-shadow: 0 0 0 60px #1B1233 inset;
    caret-color: #FFA53C;
    transition: background-color 8000s ease 0s;
}

/* ------------------------------- the note line ---------------------------- */

html.rx-ld-home .ld-signup .ms-note {
    margin-top: 16px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
}

html.rx-ld-home .ld-signup .ms-note.is-err {
    border: 1px solid rgba(255, 99, 99, .34);
    background: rgba(255, 99, 99, .12);
    color: #FFA8A8;
}

html.rx-ld-home .ld-signup .ms-note.is-ok {
    border: 1px solid rgba(52, 211, 153, .32);
    background: rgba(52, 211, 153, .12);
    color: #86EFAC;
}

/* -------------------------------- the button ------------------------------ */

html.rx-ld-home .ld-signup .su-submit {
    width: 100%;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

/* ----------------------------- the lines under it ------------------------- */

html.rx-ld-home .ld-signup .su-alt {
    margin-top: 18px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #9A93B4;
    text-align: start;
}

html.rx-ld-home .ld-signup .su-alt a,
html.rx-ld-home .ld-signup .su-trial a {
    color: #FFA53C;
    font-weight: 700;
}

html.rx-ld-home .ld-signup .su-trial {
    margin: 24px auto 0;
    max-width: 48ch;
    font-size: 13px;
    line-height: 1.65;
    color: #9A93B4;
    text-align: center;
}

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

@media (max-width: 719px) {
    html.rx-ld-home .ld-signup .su-band {
        padding: 30px 0 48px;
    }

    html.rx-ld-home .ld-signup .su-card {
        padding: 26px 18px 24px;
        border-radius: 18px;
    }

    /* one field per row on a phone */
    html.rx-ld-home .ld-signup .su-form {
        grid-template-columns: minmax(0, 1fr);
    }

    html.rx-ld-home .ld-signup .su-form .su-span2 {
        grid-column: auto / span 1;
    }
}

/* the hairlines run from the start edge: in Arabic that is the right */
html.rx-ld-home .ld[dir="rtl"] {
    --rx-x-end: left;
}
