/* ===========================================================================
   rx-login.css — the sign-in screen in the Magma Solutions identity.

   /login is the one page that does not sit in the .ld shell: the app draws its
   own .ms-auth screen (src/views/parts/signin.view) straight into [app], with
   no header and no footer. So this file carries the whole page itself — the
   space ground, the nebula and the faint blueprint grid, then the card:

       one glass card, a lit top edge, the brand mark in the amber gradient,
       a white display heading with the short amber rule over it, fields in
       glass with an amber focus ring, the amber button, and the quiet lines
       under it with amber links.

   .ms-auth is the app's shared auth component (the platform setup screen uses
   it too, and a storefront can), so every rule is scoped to html.rx-ld-login,
   a class js/rx-identity.js puts on the root only while the address is
   /login. Nothing here touches a form's id, its name, its endpoint or the
   words on it.
   ========================================================================== */

/* -------------------------------- the ground ------------------------------ */

html.rx-ld-login {
    color-scheme: dark;
    background-color: #07040F !important;
}

html.rx-ld-login ::selection {
    background: rgba(255, 122, 24, .28);
    color: #FFFFFF;
}

html.rx-ld-login .ms-auth {
    color: #C9C3DC;
    background-color: #07040F;
    background-image:
        radial-gradient(1100px 720px at 14% 0%, rgba(109, 40, 217, .48) 0%, rgba(109, 40, 217, 0) 62%),
        radial-gradient(900px 600px at 86% 0%, rgba(255, 122, 24, .16) 0%, rgba(255, 122, 24, 0) 60%),
        radial-gradient(1000px 640px at 50% 100%, rgba(109, 40, 217, .18) 0%, rgba(109, 40, 217, 0) 66%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 72px),
        linear-gradient(180deg, #120A24 0%, #07040F 42%, #0A0616 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

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

html.rx-ld-login .ms-auth-card {
    position: relative;
    max-width: 452px;
    padding: 34px 32px 30px;
    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, .84), rgba(9, 5, 18, .9));
    box-shadow: 0 40px 80px -60px rgba(0, 0, 0, .9);
}

html.rx-ld-login .ms-auth-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 brand ------------------------------- */

html.rx-ld-login .ms-mark {
    background: linear-gradient(140deg, #FF7A18, #FFA53C);
    color: #1B0B02;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-weight: 900;
    box-shadow: 0 10px 24px -12px rgba(255, 122, 24, .9);
}

html.rx-ld-login .ms-brand-name {
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: 14.5px;
    font-weight: 700;
    color: #FFFFFF;
}

html.rx-ld-login .ms-brand-sub {
    font-size: 12px;
    color: #9A93B4;
}

/* -------------------------------- the heading ----------------------------- */

html.rx-ld-login .ms-auth-card {
    text-align: start;
}

html.rx-ld-login .ms-auth-title {
    margin: 0;
    text-align: start;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: #FFFFFF;
}

html.rx-ld-login .ms-auth-title::before {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin: 0 0 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, #FF7A18, #FFA53C);
}

html.rx-ld-login .ms-auth-sub {
    margin-top: 10px;
    text-align: start;
    font-size: 13.5px;
    line-height: 1.65;
    color: #C9C3DC;
}

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

html.rx-ld-login .ms-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #C9C3DC;
}

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

html.rx-ld-login .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-login .ms-input::placeholder {
    color: rgba(201, 195, 220, .62);
}

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

html.rx-ld-login .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);
}

html.rx-ld-login .ms-input:-webkit-autofill,
html.rx-ld-login .ms-input:-webkit-autofill:hover,
html.rx-ld-login .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-login .ms-note {
    margin-top: 16px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
}

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

html.rx-ld-login .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-login .ms-auth .ms-btn {
    text-align: center;
    border-radius: 12px;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: 14.5px;
    font-weight: 700;
}

html.rx-ld-login .ms-auth .ms-btn-primary {
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(135deg, #FF7A18 0%, #FFA53C 100%);
    color: #180A2B;
    box-shadow: 0 14px 30px -16px rgba(255, 122, 24, .85);
}

html.rx-ld-login .ms-auth .ms-btn-primary:hover,
html.rx-ld-login .ms-auth .ms-btn-primary:active {
    background: linear-gradient(135deg, #FF8A2E 0%, #FFB255 100%);
    color: #180A2B;
}

html.rx-ld-login .ms-auth .ms-btn-ghost {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    color: #E7E2F5;
}

/* ------------------------------ the quiet lines --------------------------- */

html.rx-ld-login .ms-auth-foot {
    margin-top: 18px;
    font-size: 12.5px;
    line-height: 1.65;
    color: #B4ADCA;
    text-align: start;
}

html.rx-ld-login .ms-auth-foot a {
    color: #FFA53C;
    font-weight: 700;
}

html.rx-ld-login .ms-auth-foot a:hover {
    color: #FFC078;
}

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

@media (max-width: 520px) {
    html.rx-ld-login .ms-auth {
        padding: 20px 14px;
    }

    html.rx-ld-login .ms-auth-card {
        padding: 26px 18px 22px;
        border-radius: 18px;
    }
}

/* the hairlines run from the start edge: in Arabic that is the right */
html.rx-ld-login {
    --rx-x-end: right;
}

html.rx-ld-login[dir="rtl"] {
    --rx-x-end: left;
}
