/* =========================================================
   SOTAK MEDIA CRM PRO — Executive Interactive Login
   Version 1.9.16.0-RC14
   Scope: isolated /crm-login/ route only
   ========================================================= */

:root {
    color-scheme: light;
    --sml-navy-950: #030817;
    --sml-navy-900: #061127;
    --sml-navy-850: #0a1935;
    --sml-navy-800: #0e2145;
    --sml-white: #ffffff;
    --sml-paper: #fbfbff;
    --sml-paper-2: #f3f3ff;
    --sml-ink: #17204a;
    --sml-ink-2: #2d3765;
    --sml-muted: #7780a5;
    --sml-blue: #2f86ff;
    --sml-cyan: #23c5ff;
    --sml-purple: #7657ff;
    --sml-purple-2: #a948ff;
    --sml-pink: #f24bd7;
    --sml-green: #1fbf8f;
    --sml-red: #e64768;
    --sml-border-dark: rgba(120, 157, 224, .18);
    --sml-border-light: rgba(66, 74, 137, .14);
    --sml-shadow: 0 40px 120px rgba(16, 17, 66, .19);
    --sml-radius-xl: 32px;
    --sml-radius-lg: 22px;
    --sml-radius-md: 15px;
}

html,
body.smcrm-login-page {
    width: 100%;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

body.smcrm-login-page {
    overflow-x: hidden;
    color: var(--sml-ink);
    background:
        radial-gradient(circle at 93% 8%, rgba(168, 72, 255, .12), transparent 27%),
        radial-gradient(circle at 5% 94%, rgba(47, 134, 255, .12), transparent 29%),
        linear-gradient(135deg, #f8f9ff 0%, #f2f2ff 52%, #fdfbff 100%);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.smcrm-login-page,
body.smcrm-login-page * {
    box-sizing: border-box;
}

body.smcrm-login-page a {
    text-decoration: none;
}

body.smcrm-login-page button,
body.smcrm-login-page input {
    font: inherit;
}

.smcrm-login-wrap {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 18px;
    isolation: isolate;
}

.smcrm-login-ambient {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.smcrm-login-ambient span {
    position: absolute;
    border-radius: 999px;
}

.smcrm-login-ambient span:nth-child(1) {
    width: 560px;
    height: 560px;
    top: -300px;
    right: -170px;
    background: rgba(169, 72, 255, .10);
    filter: blur(80px);
}

.smcrm-login-ambient span:nth-child(2) {
    width: 660px;
    height: 660px;
    left: -380px;
    bottom: -360px;
    background: rgba(47, 134, 255, .10);
    filter: blur(100px);
}

.smcrm-login-ambient span:nth-child(3) {
    width: 360px;
    height: 360px;
    top: 16%;
    left: 42%;
    border: 1px solid rgba(106, 86, 255, .09);
    box-shadow: 0 0 0 48px rgba(106, 86, 255, .025), 0 0 0 96px rgba(106, 86, 255, .015);
}

.smcrm-login-ambient span:nth-child(4) {
    width: 180px;
    height: 180px;
    right: 4%;
    bottom: 7%;
    border: 1px solid rgba(47, 134, 255, .09);
}

.smcrm-login-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(420px, .78fr);
    direction: ltr;
    width: min(1600px, 100%);
    min-height: min(950px, calc(100vh - 28px));
    overflow: hidden;
    border: 1px solid rgba(47, 58, 119, .13);
    border-radius: var(--sml-radius-xl);
    background: #fff;
    box-shadow: var(--sml-shadow);
}

.smcrm-login-showcase,
.smcrm-login-panel {
    position: relative;
    min-width: 0;
    direction: rtl;
}

/* =========================
   DARK EXECUTIVE SHOWCASE
   ========================= */

.smcrm-login-showcase {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
    padding: clamp(22px, 1.9vw, 30px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 12%, rgba(35, 197, 255, .13), transparent 24%),
        radial-gradient(circle at 12% 93%, rgba(169, 72, 255, .20), transparent 31%),
        linear-gradient(145deg, #030817 0%, #06142c 52%, #071a3a 100%);
}

.smcrm-login-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .24;
    background-image:
        linear-gradient(rgba(100, 145, 230, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 145, 230, .07) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent 72%);
}

.smcrm-login-showcase::after {
    content: "";
    position: absolute;
    width: 580px;
    height: 580px;
    right: -300px;
    top: 62px;
    border: 1px solid rgba(74, 158, 255, .16);
    border-radius: 50%;
    box-shadow:
        0 0 0 60px rgba(52, 132, 255, .025),
        0 0 0 130px rgba(123, 82, 255, .02),
        inset 0 0 110px rgba(35, 197, 255, .035);
}

.smcrm-showcase-orbit {
    position: absolute;
    width: 520px;
    height: 520px;
    right: -245px;
    top: 90px;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: .55;
}

.smcrm-showcase-orbit::before,
.smcrm-showcase-orbit::after,
.smcrm-showcase-orbit i {
    content: "";
    position: absolute;
    inset: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #61d3ff;
    box-shadow: 0 0 14px rgba(97, 211, 255, .9);
    transform-origin: 0 0;
    animation: smcrm-orbit 14s linear infinite;
}

.smcrm-showcase-orbit::before { transform: rotate(0deg) translateX(250px); }
.smcrm-showcase-orbit::after { animation-duration: 19s; animation-direction: reverse; transform: rotate(120deg) translateX(200px); }
.smcrm-showcase-orbit i:nth-child(1) { animation-duration: 11s; transform: rotate(245deg) translateX(225px); }
.smcrm-showcase-orbit i:nth-child(2) { animation-duration: 17s; animation-direction: reverse; transform: rotate(60deg) translateX(175px); }
.smcrm-showcase-orbit i:nth-child(3) { animation-duration: 23s; transform: rotate(300deg) translateX(150px); }

.smcrm-showcase-top,
.smcrm-showcase-copy,
.smcrm-showcase-features,
.smcrm-demo-window {
    position: relative;
    z-index: 2;
}

.smcrm-showcase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 48px;
}

.smcrm-showcase-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.smcrm-showcase-brand > img {
    display: block;
    width: clamp(170px, 14vw, 230px);
    height: auto;
    max-height: 60px;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(0 12px 28px rgba(75, 82, 255, .18));
}

.smcrm-login-wave {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2.2px;
    width: 62px;
    height: 28px;
    flex: 0 0 auto;
    opacity: .96;
    filter: drop-shadow(0 0 9px rgba(139, 92, 246, .30));
}

.smcrm-login-wave i {
    display: block;
    width: 2px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, #00a3ff 0%, #2563eb 35%, #a855f7 72%, #ec4899 100%);
    transform-origin: center;
    animation: smcrm-login-wave 2.8s ease-in-out infinite;
}

.smcrm-login-wave i:nth-child(1),
.smcrm-login-wave i:nth-child(15) { --smwave-height: 7px; animation-delay: -.14s; }
.smcrm-login-wave i:nth-child(2),
.smcrm-login-wave i:nth-child(14) { --smwave-height: 11px; animation-delay: -.28s; }
.smcrm-login-wave i:nth-child(3),
.smcrm-login-wave i:nth-child(13) { --smwave-height: 15px; animation-delay: -.42s; }
.smcrm-login-wave i:nth-child(4),
.smcrm-login-wave i:nth-child(12) { --smwave-height: 20px; animation-delay: -.56s; }
.smcrm-login-wave i:nth-child(5),
.smcrm-login-wave i:nth-child(11) { --smwave-height: 25px; animation-delay: -.70s; }
.smcrm-login-wave i:nth-child(6),
.smcrm-login-wave i:nth-child(10) { --smwave-height: 18px; animation-delay: -.84s; }
.smcrm-login-wave i:nth-child(7),
.smcrm-login-wave i:nth-child(9) { --smwave-height: 22px; animation-delay: -.98s; }
.smcrm-login-wave i:nth-child(8) { --smwave-height: 28px; animation-delay: -1.12s; }

.smcrm-login-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid rgba(72, 220, 174, .24);
    border-radius: 999px;
    color: #89e9c5;
    background: rgba(24, 175, 128, .09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.smcrm-login-secure-badge svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.smcrm-showcase-copy {
    max-width: 880px;
    margin-top: 0;
}

.smcrm-login-kicker,
.smcrm-login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.smcrm-login-kicker {
    padding: 7px 11px;
    border: 1px solid rgba(90, 148, 255, .22);
    border-radius: 999px;
    color: #9bdfff;
    background: rgba(27, 83, 172, .08);
}

.smcrm-login-kicker span,
.smcrm-login-kicker b {
    font-weight: 800;
}

.smcrm-login-kicker span::after {
    content: "•";
    margin-right: 10px;
    color: #7468ff;
}

.smcrm-showcase-copy h2 {
    max-width: 860px;
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 3.15vw, 54px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.smcrm-showcase-copy h2 span {
    background: linear-gradient(100deg, #61d3ff 0%, #8183ff 48%, #c24cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 10px 28px rgba(95, 88, 255, .13));
}

.smcrm-showcase-copy > p:last-child {
    max-width: 760px;
    margin: 7px 0 0;
    color: #a7b8d3;
    font-size: 11.8px;
    line-height: 1.65;
}

.smcrm-showcase-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.smcrm-showcase-features article {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(112, 151, 219, .15);
    border-radius: 14px;
    background: rgba(5, 17, 41, .56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.smcrm-showcase-features article:hover {
    border-color: rgba(94, 168, 255, .34);
    background: rgba(8, 27, 61, .76);
    transform: translateY(-3px);
}

.smcrm-showcase-features article > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(81, 153, 255, .23);
    border-radius: 10px;
    color: #62d0ff;
    background: rgba(44, 113, 220, .10);
}

.smcrm-showcase-features svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.smcrm-showcase-features article > div {
    display: grid;
    min-width: 0;
}

.smcrm-showcase-features strong {
    color: #f3f7ff;
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
}

.smcrm-showcase-features small {
    overflow: hidden;
    margin-top: 3px;
    color: #6f83a4;
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================
   INTERACTIVE DEMO DASHBOARD
   ========================= */

.smcrm-demo-window {
    --demo-tilt-x: 0deg;
    --demo-tilt-y: 0deg;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 580px;
    overflow: hidden;
    border: 1px solid rgba(120, 164, 236, .19);
    border-radius: 22px;
    background: rgba(3, 12, 30, .86);
    box-shadow:
        0 28px 75px rgba(0, 0, 0, .34),
        inset 0 1px 0 rgba(255, 255, 255, .04),
        0 0 70px rgba(91, 73, 255, .06);
    transition: transform .18s ease, border-color .25s ease, box-shadow .25s ease;
}

.smcrm-demo-window:hover,
.smcrm-demo-window:focus-within {
    border-color: rgba(116, 165, 255, .32);
    box-shadow: 0 34px 90px rgba(0, 0, 0, .42), 0 0 85px rgba(95, 82, 255, .10);
}

.smcrm-demo-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 40px;
    padding: 6px 14px;
    border-bottom: 1px solid rgba(115, 151, 215, .13);
    background: rgba(8, 24, 52, .78);
}

.smcrm-demo-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8da0bf;
    font-size: 8px;
    font-weight: 700;
}

.smcrm-demo-live > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #43dfa9;
    box-shadow: 0 0 0 4px rgba(67, 223, 169, .09), 0 0 12px rgba(67, 223, 169, .60);
    animation: smcrm-demo-pulse 1.9s ease-in-out infinite;
}

.smcrm-demo-live b {
    padding: 4px 7px;
    border: 1px solid rgba(115, 137, 190, .16);
    border-radius: 999px;
    color: #6d82a4;
    background: rgba(11, 26, 56, .66);
    font-size: 6px;
    letter-spacing: .12em;
}

.smcrm-demo-layout {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    flex: 1;
    min-height: 0;
    direction: ltr;
}

.smcrm-demo-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding: 16px 10px;
    border-right: 1px solid rgba(115, 151, 215, .11);
    background: rgba(3, 13, 31, .76);
}

.smcrm-demo-nav button {
    position: relative;
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 68px;
    padding: 6px 3px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #5c7192;
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.smcrm-demo-nav button:hover,
.smcrm-demo-nav button:focus-visible {
    color: #a4d8ff;
    border-color: rgba(77, 148, 255, .18);
    background: rgba(38, 95, 185, .08);
    transform: translateY(-1px);
}

.smcrm-demo-nav button[aria-selected="true"] {
    color: #83d5ff;
    border-color: rgba(87, 141, 255, .30);
    background: linear-gradient(145deg, rgba(48, 126, 240, .18), rgba(116, 80, 255, .12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 8px 22px rgba(25, 59, 143, .12);
}

.smcrm-demo-nav button[aria-selected="true"]::after {
    content: "";
    position: absolute;
    right: -9px;
    width: 2px;
    height: 23px;
    border-radius: 999px;
    background: linear-gradient(180deg, #27c6ff, #795dff);
    box-shadow: 0 0 12px rgba(58, 162, 255, .55);
}

.smcrm-demo-nav svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.smcrm-demo-nav span {
    font-size: 8.5px;
    font-weight: 780;
    white-space: nowrap;
}

.smcrm-demo-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 18px 20px 17px;
    direction: rtl;
}

.smcrm-demo-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.smcrm-demo-heading > div {
    display: grid;
}

.smcrm-demo-heading small {
    color: #53c9ff;
    font-size: 10px;
    font-weight: 800;
}

.smcrm-demo-heading h3 {
    margin: 3px 0 0;
    color: #f5f8ff;
    font-size: 19px;
    font-weight: 800;
}

.smcrm-demo-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6f84a5;
    font-size: 8px;
    font-weight: 700;
}

.smcrm-demo-heading > span i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3ddaa4;
    box-shadow: 0 0 10px rgba(61, 218, 164, .60);
}

.smcrm-demo-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.smcrm-demo-kpis article {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 82px;
    padding: 13px;
    border: 1px solid rgba(112, 149, 214, .12);
    border-radius: 12px;
    background: rgba(8, 24, 53, .68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
    transition: border-color .22s ease, transform .22s ease, background .22s ease;
}

.smcrm-demo-kpis article:hover {
    border-color: rgba(107, 160, 255, .27);
    background: rgba(10, 30, 65, .82);
    transform: translateY(-2px);
}

.smcrm-demo-kpis article > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 9px;
}

.smcrm-demo-kpis article > span.blue { color: #59c4ff; background: rgba(39, 143, 255, .11); }
.smcrm-demo-kpis article > span.purple { color: #9d77ff; background: rgba(118, 87, 255, .11); }
.smcrm-demo-kpis article > span.pink { color: #f268df; background: rgba(242, 75, 215, .10); }
.smcrm-demo-kpis article > span.cyan { color: #42d8d5; background: rgba(66, 216, 213, .10); }

.smcrm-demo-kpis svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.smcrm-demo-kpis article > div {
    display: grid;
    grid-template-columns: auto auto;
    align-items: end;
    min-width: 0;
}

.smcrm-demo-kpis small {
    grid-column: 1 / -1;
    overflow: hidden;
    color: #7186a7;
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smcrm-demo-kpis strong {
    color: #f8faff;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    direction: ltr;
}

.smcrm-demo-kpis em {
    margin: 0 5px 2px 0;
    color: #38d7a2;
    font-size: 7.8px;
    font-style: normal;
    font-weight: 800;
    direction: ltr;
}

.smcrm-demo-kpis em.is-down {
    color: #ff6686;
}

.smcrm-demo-analytics {
    display: grid;
    grid-template-columns: minmax(0, 1.68fr) minmax(230px, .62fr);
    flex: 1 1 auto;
    gap: 13px;
    min-height: 0;
}

.smcrm-demo-chart,
.smcrm-demo-insight {
    min-width: 0;
}

.smcrm-demo-chart {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 16px 17px 12px;
    border: 1px solid rgba(112, 149, 214, .12);
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(8, 24, 53, .72), rgba(5, 18, 42, .60));
}

.smcrm-demo-chart header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.smcrm-demo-chart header > div {
    display: grid;
}

.smcrm-demo-chart header small {
    color: #7186a7;
    font-size: 7.8px;
}

.smcrm-demo-chart header strong {
    margin-top: 3px;
    color: #f5f8ff;
    font-size: 16px;
    font-weight: 800;
    direction: ltr;
    text-align: right;
}

.smcrm-demo-chart header > span {
    padding: 4px 7px;
    border: 1px solid rgba(105, 142, 209, .13);
    border-radius: 999px;
    color: #647898;
    background: rgba(4, 16, 38, .55);
    font-size: 7px;
}

.smcrm-demo-chart > svg {
    display: block;
    width: min(78%, 560px);
    max-width: 100%;
    aspect-ratio: 13 / 7;
    flex: 0 0 auto;
    min-height: 0;
    margin: 12px auto 7px;
    overflow: visible;
}

.smcrm-demo-chart-plot {
    transform-box: fill-box;
    transform-origin: center;
}

.smcrm-demo-grid-lines path {
    fill: none;
    stroke: rgba(108, 141, 200, .10);
    stroke-width: 1;
}

.smcrm-demo-chart [data-demo-area] {
    transition: d .65s cubic-bezier(.2, .75, .25, 1);
}

.smcrm-demo-chart [data-demo-line] {
    stroke-dasharray: 820;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 4px 7px rgba(101, 105, 255, .35));
    transition: d .65s cubic-bezier(.2, .75, .25, 1);
    animation: smcrm-demo-line-draw 2.2s ease both;
}

.smcrm-demo-points circle {
    fill: #0a1a38;
    stroke: #67cfff;
    stroke-width: 3;
    filter: drop-shadow(0 0 5px rgba(82, 197, 255, .62));
}

.smcrm-demo-chart footer {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: min(78%, 560px);
    max-width: 100%;
    gap: 3px;
    margin: 0 auto;
    color: #516683;
    font-size: 6.5px;
    text-align: center;
}

.smcrm-demo-insight {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 9px;
}

.smcrm-demo-progress,
.smcrm-demo-activity {
    border: 1px solid rgba(112, 149, 214, .12);
    border-radius: 13px;
    background: rgba(8, 24, 53, .68);
}

.smcrm-demo-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.smcrm-demo-ring {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: conic-gradient(#53c7ff 0 calc(var(--demo-progress) * 1%), #795cff calc(var(--demo-progress) * 1%) calc((var(--demo-progress) + 11) * 1%), rgba(101, 128, 182, .15) 0);
    box-shadow: 0 9px 25px rgba(65, 87, 199, .13);
    transition: background .6s ease;
}

.smcrm-demo-ring::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #0a1b3a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.smcrm-demo-ring > span {
    position: relative;
    z-index: 1;
    display: grid;
    text-align: center;
}

.smcrm-demo-ring strong {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    direction: ltr;
}

.smcrm-demo-ring small {
    color: #647999;
    font-size: 6.3px;
}

.smcrm-demo-progress > div:last-child {
    display: grid;
    min-width: 0;
}

.smcrm-demo-progress > div:last-child > small {
    color: #52c9ff;
    font-size: 8px;
    font-weight: 800;
}

.smcrm-demo-progress > div:last-child > strong {
    overflow: hidden;
    margin-top: 3px;
    color: #f2f6ff;
    font-size: 9.2px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smcrm-demo-progress p {
    margin: 3px 0 0;
    color: #617594;
    font-size: 6.5px;
    line-height: 1.45;
}

.smcrm-demo-activity {
    padding: 9px 10px;
}

.smcrm-demo-activity header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.smcrm-demo-activity header strong {
    color: #eef3ff;
    font-size: 8px;
    font-weight: 800;
}

.smcrm-demo-activity header span {
    color: #3bd6a4;
    font-size: 6.3px;
}

.smcrm-demo-activity > div {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 0;
    border-top: 1px solid rgba(112, 149, 214, .075);
}

.smcrm-demo-activity > div > i {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.smcrm-demo-activity > div > i.blue { background: #41bfff; box-shadow: 0 0 8px rgba(65, 191, 255, .50); }
.smcrm-demo-activity > div > i.purple { background: #8d6cff; box-shadow: 0 0 8px rgba(141, 108, 255, .50); }
.smcrm-demo-activity > div > i.cyan { background: #43d8d0; box-shadow: 0 0 8px rgba(67, 216, 208, .50); }

.smcrm-demo-activity p {
    display: grid;
    min-width: 0;
    margin: 0;
}

.smcrm-demo-activity p strong {
    overflow: hidden;
    color: #dce7fa;
    font-size: 7.2px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smcrm-demo-activity p small {
    margin-top: 2px;
    color: #526784;
    font-size: 6px;
}

.smcrm-demo-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 8px 16px;
    border-top: 1px solid rgba(115, 151, 215, .10);
    color: #607594;
    background: rgba(4, 16, 37, .78);
    font-size: 7.3px;
}

.smcrm-demo-foot span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.smcrm-demo-foot span i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ad5ad;
    box-shadow: 0 0 8px rgba(74, 213, 173, .52);
}

.smcrm-demo-foot b {
    color: #778aa8;
    font-weight: 700;
}

/* =========================
   LIGHT LOGIN PANEL
   ========================= */

.smcrm-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: clamp(38px, 4.3vw, 72px);
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 8%, rgba(169, 72, 255, .09), transparent 27%),
        radial-gradient(circle at 4% 94%, rgba(47, 134, 255, .09), transparent 31%),
        linear-gradient(150deg, #fbfbff 0%, #f4f4ff 56%, #fff 100%);
}

.smcrm-login-panel::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    top: -250px;
    left: -170px;
    border: 1px solid rgba(105, 75, 212, .09);
    border-radius: 50%;
    box-shadow: 0 0 0 54px rgba(105, 75, 212, .018), 0 0 0 110px rgba(105, 75, 212, .012);
}

.smcrm-login-panel-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    right: -210px;
    bottom: -200px;
    border-radius: 50%;
    background: rgba(47, 134, 255, .10);
    filter: blur(70px);
    pointer-events: none;
}

.smcrm-login-card {
    position: relative;
    z-index: 2;
    width: min(100%, 460px);
    padding: clamp(30px, 3vw, 44px);
    border: 1px solid rgba(68, 75, 140, .12);
    border-radius: 26px;
    background: rgba(255, 255, 255, .80);
    box-shadow: 0 24px 70px rgba(43, 39, 111, .12), inset 0 1px 0 rgba(255, 255, 255, .92);
    backdrop-filter: blur(20px);
}

.smcrm-login-mark {
    position: relative;
    display: grid;
    justify-items: center;
    min-height: 98px;
    margin-bottom: 10px;
}

.smcrm-login-mark > img {
    display: block;
    width: 84px;
    height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 13px 22px rgba(100, 74, 255, .20));
}

.smcrm-login-wave-light {
    position: absolute;
    right: calc(50% - 102px);
    top: 41px;
    width: 54px;
    opacity: .78;
}

.smcrm-login-heading {
    margin-bottom: 25px;
    text-align: center;
}

.smcrm-login-eyebrow {
    margin-bottom: 11px;
    color: #775cff;
    letter-spacing: .12em;
    direction: ltr;
}

.smcrm-login-heading h1 {
    margin: 0;
    color: #18214b;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.smcrm-login-heading p {
    max-width: 340px;
    margin: 10px auto 0;
    color: #7c84a5;
    font-size: 12.5px;
    line-height: 1.75;
}

.smcrm-login-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(230, 71, 104, .18);
    border-radius: 12px;
    color: #a82f4a;
    background: rgba(230, 71, 104, .055);
    font-size: 11px;
    font-weight: 700;
}

.smcrm-login-message::before {
    content: "!";
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fff;
    background: #e64768;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 900;
}

.smcrm-login-message.success {
    border-color: rgba(31, 191, 143, .20);
    color: #137f61;
    background: rgba(31, 191, 143, .06);
}

.smcrm-login-message.success::before {
    content: "✓";
    background: #1fbf8f;
}

.smcrm-login-form {
    display: grid;
    gap: 17px;
}

.smcrm-login-field {
    display: grid;
    gap: 8px;
    color: #313961;
    font-size: 11px;
    font-weight: 800;
}

.smcrm-login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    border: 1px solid rgba(70, 78, 143, .18);
    border-radius: 13px;
    background: rgba(255, 255, 255, .82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 8px 22px rgba(38, 40, 98, .035);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.smcrm-login-input-wrap:focus-within {
    border-color: rgba(91, 85, 255, .60);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91, 85, 255, .09), 0 13px 28px rgba(43, 39, 111, .07);
    transform: translateY(-1px);
}

.smcrm-login-input-wrap > svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-right: 15px;
    color: #8f96b4;
    fill: currentColor;
    transition: color .18s ease;
}

.smcrm-login-input-wrap:focus-within > svg {
    color: #695cff;
}

.smcrm-login-input-wrap input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 14px 0 10px;
    border: 0;
    outline: 0;
    color: #252d55;
    background: transparent;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 13px;
    text-align: left;
}

.smcrm-login-input-wrap input::placeholder {
    color: #a6abc1;
    opacity: 1;
}

.smcrm-password-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    margin-left: 5px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #8e95b2;
    background: transparent;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.smcrm-password-toggle:hover,
.smcrm-password-toggle:focus-visible {
    color: #5f55ec;
    background: rgba(95, 85, 236, .06);
}

.smcrm-password-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.smcrm-password-toggle .smcrm-eye-closed {
    display: none;
}

.smcrm-password-toggle[aria-pressed="true"] .smcrm-eye-open {
    display: none;
}

.smcrm-password-toggle[aria-pressed="true"] .smcrm-eye-closed {
    display: block;
}

.smcrm-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: -1px;
}

.smcrm-login-options > a {
    color: #6557e8;
    font-size: 10.5px;
    font-weight: 800;
    transition: color .18s ease;
}

.smcrm-login-options > a:hover,
.smcrm-login-options > a:focus-visible {
    color: #3529c1;
}

.smcrm-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7d84a4;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 700;
    user-select: none;
}

.smcrm-remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.smcrm-remember > span {
    position: relative;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 1px solid rgba(79, 87, 147, .26);
    border-radius: 5px;
    background: #fff;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.smcrm-remember > span::after {
    content: "";
    width: 8px;
    height: 4px;
    margin-top: -2px;
    border: solid #fff;
    border-width: 0 0 2px 2px;
    opacity: 0;
    transform: rotate(-45deg) scale(.7);
    transition: opacity .18s ease, transform .18s ease;
}

.smcrm-remember input:checked + span {
    border-color: transparent;
    background: linear-gradient(135deg, var(--sml-blue), var(--sml-purple));
    box-shadow: 0 7px 15px rgba(86, 82, 235, .20);
}

.smcrm-remember input:checked + span::after {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
}

.smcrm-remember input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(91, 85, 255, .11);
}

.smcrm-remember b {
    font-weight: inherit;
}

.smcrm-login-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 55px;
    margin-top: 2px;
    padding: 0 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(103deg, #8f25f5 0%, #6f51ff 48%, #2e8fff 100%);
    box-shadow: 0 16px 34px rgba(88, 75, 230, .26), inset 0 1px 0 rgba(255, 255, 255, .26);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.smcrm-login-submit::before {
    content: "";
    position: absolute;
    width: 90px;
    height: 100%;
    left: -120px;
    top: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .20), transparent);
    transform: skewX(-22deg);
    transition: left .55s ease;
}

.smcrm-login-submit:hover {
    filter: saturate(1.08) brightness(1.04);
    box-shadow: 0 20px 42px rgba(88, 75, 230, .34), inset 0 1px 0 rgba(255, 255, 255, .30);
    transform: translateY(-2px);
}

.smcrm-login-submit:hover::before {
    left: calc(100% + 30px);
}

.smcrm-login-submit:active {
    transform: translateY(0);
}

.smcrm-login-submit:focus-visible,
.smcrm-login-options > a:focus-visible,
.smcrm-password-toggle:focus-visible,
.smcrm-client-login-link:focus-visible,
.smcrm-demo-nav button:focus-visible {
    outline: 2px solid #6c5cff;
    outline-offset: 3px;
}

.smcrm-login-submit > svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transform: rotate(180deg);
}

.smcrm-login-submit > i {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .34);
    border-top-color: #fff;
    border-radius: 50%;
    animation: smcrm-login-spin .7s linear infinite;
}

.smcrm-login-submit.is-loading {
    pointer-events: none;
    filter: saturate(.85);
}

.smcrm-login-submit.is-loading > svg {
    display: none;
}

.smcrm-login-submit.is-loading > i {
    display: block;
}

.smcrm-login-form-status {
    min-height: 1px;
    margin: -10px 0 0;
    color: #8990ac;
    font-size: 9.5px;
    text-align: center;
}

.smcrm-login-divider {
    position: relative;
    display: grid;
    place-items: center;
    margin: 21px 0 14px;
}

.smcrm-login-divider::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(72, 80, 140, .11);
}

.smcrm-login-divider span {
    position: relative;
    z-index: 1;
    padding: 0 10px;
    color: #a0a6bd;
    background: rgba(255, 255, 255, .82);
    font-size: 10px;
}

.smcrm-client-login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 49px;
    border: 1px solid rgba(71, 79, 142, .19);
    border-radius: 13px;
    color: #39416d;
    background: rgba(255, 255, 255, .64);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84);
    font-size: 11.5px;
    font-weight: 800;
    transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.smcrm-client-login-link:hover {
    border-color: rgba(92, 84, 235, .32);
    color: #5f53df;
    background: #fff;
    transform: translateY(-1px);
}

.smcrm-client-login-link svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.smcrm-login-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    color: #9198b3;
    font-size: 9.5px;
    text-align: center;
}

.smcrm-login-trust svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.smcrm-login-panel-foot {
    position: absolute;
    right: 0;
    bottom: 22px;
    left: 0;
    color: #a1a6ba;
    font-size: 9px;
    text-align: center;
    direction: ltr;
}

/* =========================
   RC9 — CHART PROPORTION FIX ONLY
   The animated plot keeps its data and motion but no longer stretches to fill the entire analytics card.
   ========================= */

@media (max-width: 1180px) {
    .smcrm-demo-chart > svg,
    .smcrm-demo-chart footer {
        width: min(86%, 540px);
    }
}

/* =========================
   RC8 — DASHBOARD BREATHING SPACE
   The live demo gets a wider canvas, stronger hierarchy and no duplicated internal branding.
   ========================= */

@media (min-width: 1181px) {
    .smcrm-login-showcase {
        display: grid;
        grid-template-rows: auto auto minmax(580px, 1fr);
        align-content: stretch;
    }

    .smcrm-showcase-copy {
        align-self: start;
    }

    .smcrm-demo-window {
        width: 100%;
        min-height: 590px;
        margin-top: 2px;
    }

    .smcrm-demo-live { font-size: 9.5px; }
    .smcrm-demo-nav svg { width: 21px; height: 21px; }
    .smcrm-demo-nav span { font-size: 8.8px; }
    .smcrm-demo-heading small { font-size: 10px; }
    .smcrm-demo-heading h3 { font-size: 19px; }
    .smcrm-demo-heading > span { font-size: 8.5px; }
    .smcrm-demo-chart header small { font-size: 8.5px; }
    .smcrm-demo-chart header strong { font-size: 16px; }
    .smcrm-demo-chart header > span { font-size: 7.4px; }
    .smcrm-demo-chart footer { font-size: 7.8px; }
    .smcrm-demo-progress > div:last-child > small { font-size: 7.4px; }
    .smcrm-demo-progress > div:last-child > strong { font-size: 10px; }
    .smcrm-demo-progress p { font-size: 6.8px; }
    .smcrm-demo-activity header strong { font-size: 8.4px; }
    .smcrm-demo-activity header span { font-size: 6.6px; }
    .smcrm-demo-activity p strong { font-size: 7.5px; }
    .smcrm-demo-activity p small { font-size: 6.2px; }
    .smcrm-demo-foot { font-size: 7.5px; }
}

/* =========================
   ANIMATIONS
   ========================= */

@keyframes smcrm-login-wave {
    0%, 100% { height: 4px; opacity: .42; transform: scaleY(.9); }
    50% { height: var(--smwave-height); opacity: 1; transform: scaleY(1); }
}

@keyframes smcrm-orbit {
    from { transform: rotate(0deg) translateX(225px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(225px) rotate(-360deg); }
}

@keyframes smcrm-demo-pulse {
    0%, 100% { opacity: .55; transform: scale(.86); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes smcrm-demo-line-draw {
    from { stroke-dashoffset: 820; }
    to { stroke-dashoffset: 0; }
}

@keyframes smcrm-login-spin {
    to { transform: rotate(360deg); }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1380px) {
    .smcrm-login-shell {
        grid-template-columns: minmax(0, 1.48fr) minmax(400px, .76fr);
    }

    .smcrm-login-showcase {
        padding: 30px;
    }

    .smcrm-showcase-copy h2 {
        font-size: clamp(40px, 4vw, 58px);
    }

    .smcrm-showcase-features small {
        display: none;
    }

    .smcrm-demo-analytics {
        grid-template-columns: minmax(0, 1.35fr) minmax(180px, .65fr);
    }
}

@media (max-width: 1180px) {
    .smcrm-login-shell {
        grid-template-columns: minmax(0, 1.18fr) minmax(390px, .86fr);
    }

    .smcrm-showcase-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smcrm-showcase-features small {
        display: block;
    }

    .smcrm-demo-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smcrm-demo-analytics {
        grid-template-columns: 1fr;
    }

    .smcrm-demo-insight {
        display: none;
    }
}

@media (max-width: 1020px) {
    .smcrm-login-wrap {
        padding: 16px;
    }

    .smcrm-login-shell {
        grid-template-columns: 1fr;
        width: min(720px, 100%);
        min-height: 0;
    }

    .smcrm-login-panel {
        order: 1;
        min-height: 740px;
        padding: 60px 72px 80px;
    }

    .smcrm-login-showcase {
        order: 2;
        min-height: 760px;
    }

    .smcrm-login-card {
        width: min(100%, 480px);
    }

    .smcrm-login-panel-foot {
        bottom: 26px;
    }
}

@media (max-width: 760px) {
    .smcrm-login-wrap {
        display: block;
        padding: 0;
    }

    .smcrm-login-shell {
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .smcrm-login-showcase {
        display: none;
    }

    .smcrm-login-panel {
        min-height: 100vh;
        padding: 34px 22px 62px;
        background:
            radial-gradient(circle at 100% 0, rgba(169, 72, 255, .11), transparent 29%),
            radial-gradient(circle at 0 100%, rgba(47, 134, 255, .11), transparent 33%),
            linear-gradient(155deg, #f8f8ff, #f1f2ff 62%, #fff);
    }

    .smcrm-login-card {
        width: 100%;
        max-width: 500px;
        padding: 28px 22px;
        border-radius: 22px;
    }

    .smcrm-login-heading h1 {
        font-size: 31px;
    }

    .smcrm-login-wave-light {
        right: calc(50% - 94px);
    }

    .smcrm-login-panel-foot {
        bottom: 20px;
    }
}

@media (max-width: 440px) {
    .smcrm-login-panel {
        align-items: flex-start;
        padding: 22px 14px 56px;
    }

    .smcrm-login-card {
        padding: 24px 17px;
        border-radius: 19px;
    }

    .smcrm-login-mark {
        min-height: 88px;
    }

    .smcrm-login-mark > img {
        width: 74px;
        height: 82px;
    }

    .smcrm-login-wave-light {
        right: calc(50% - 86px);
        top: 36px;
        width: 48px;
    }

    .smcrm-login-heading {
        margin-bottom: 22px;
    }

    .smcrm-login-heading h1 {
        font-size: 28px;
    }

    .smcrm-login-heading p {
        font-size: 11.5px;
    }

    .smcrm-login-options {
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-height: 820px) and (min-width: 1021px) {
    .smcrm-login-wrap {
        padding: 12px;
    }

    .smcrm-login-shell {
        min-height: calc(100vh - 24px);
    }

    .smcrm-login-showcase {
        gap: 9px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .smcrm-showcase-top {
        min-height: 42px;
    }

    .smcrm-showcase-copy h2 {
        font-size: 39px;
    }

    .smcrm-showcase-copy > p:last-child {
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.45;
    }

    .smcrm-demo-window {
        min-height: 510px;
    }

    .smcrm-demo-chart {
        min-height: 245px;
    }

    .smcrm-login-card {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .smcrm-login-mark {
        min-height: 80px;
    }

    .smcrm-login-mark > img {
        width: 72px;
        height: 79px;
    }

    .smcrm-login-heading {
        margin-bottom: 20px;
    }

    .smcrm-login-form {
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .smcrm-login-wrap *,
    .smcrm-login-wrap *::before,
    .smcrm-login-wrap *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .smcrm-demo-window {
        transform: none !important;
    }

    .smcrm-login-wave i {
        height: 9px;
    }
}


/* =========================================================
   RC10 — FULL LIGHT 50/50 LAYOUT PARITY
   Implements the approved visual direction as a complete layout,
   not a chart-only patch. Authentication and dashboard behavior stay unchanged.
   ========================================================= */

.smcrm-showcase-benefits {
    display: none;
}

@media (min-width: 1021px) {
    body.smcrm-login-page {
        background:
            radial-gradient(circle at 92% 6%, rgba(169, 72, 255, .12), transparent 29%),
            radial-gradient(circle at 3% 95%, rgba(47, 134, 255, .13), transparent 31%),
            linear-gradient(135deg, #fbfcff 0%, #f3f5ff 49%, #fbf8ff 100%);
    }

    .smcrm-login-wrap {
        padding: 22px;
    }

    .smcrm-login-shell {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        width: min(1500px, 100%);
        min-height: min(880px, calc(100vh - 44px));
        overflow: hidden;
        border: 1px solid rgba(73, 83, 156, .10);
        border-radius: 34px;
        background: rgba(255, 255, 255, .72);
        box-shadow: 0 38px 110px rgba(40, 43, 112, .16);
        backdrop-filter: blur(20px);
    }

    .smcrm-login-showcase {
        display: flex;
        flex-direction: column;
        gap: 16px;
        min-height: 0;
        padding: 38px 42px 30px;
        color: var(--sml-ink);
        background:
            radial-gradient(circle at 84% 12%, rgba(103, 94, 255, .09), transparent 26%),
            radial-gradient(circle at 4% 88%, rgba(47, 134, 255, .09), transparent 30%),
            linear-gradient(145deg, rgba(255,255,255,.96), rgba(245,247,255,.92));
    }

    .smcrm-login-showcase::before {
        opacity: .33;
        background-image:
            linear-gradient(rgba(78, 95, 177, .055) 1px, transparent 1px),
            linear-gradient(90deg, rgba(78, 95, 177, .055) 1px, transparent 1px);
        background-size: 48px 48px;
        mask-image: linear-gradient(180deg, rgba(0,0,0,.45), transparent 74%);
    }

    .smcrm-login-showcase::after {
        width: 520px;
        height: 520px;
        right: -250px;
        top: 18px;
        border-color: rgba(88, 101, 220, .09);
        box-shadow:
            0 0 0 64px rgba(88, 101, 220, .018),
            0 0 0 128px rgba(88, 101, 220, .012),
            inset 0 0 90px rgba(47, 134, 255, .025);
    }

    .smcrm-showcase-orbit,
    .smcrm-showcase-brand {
        display: none;
    }

    .smcrm-showcase-top {
        justify-content: flex-start;
        min-height: auto;
    }

    .smcrm-login-secure-badge {
        padding: 9px 14px;
        border-color: rgba(80, 93, 205, .16);
        color: #35439a;
        background: rgba(255, 255, 255, .78);
        box-shadow: 0 10px 28px rgba(61, 63, 143, .07), inset 0 1px 0 rgba(255,255,255,.88);
        font-size: 11px;
    }

    .smcrm-login-secure-badge svg {
        color: #5967e8;
    }

    .smcrm-showcase-copy {
        max-width: none;
        margin: 0;
        text-align: right;
    }

    .smcrm-login-kicker {
        padding: 0;
        border: 0;
        color: #4a56a0;
        background: transparent;
        font-size: 11px;
    }

    .smcrm-showcase-copy h2 {
        max-width: 100%;
        margin-top: 2px;
        color: #17204a;
        font-size: clamp(38px, 3.25vw, 56px);
        line-height: 1.15;
        letter-spacing: -.04em;
    }

    .smcrm-showcase-copy h2 span {
        background: linear-gradient(100deg, #2f72ff 0%, #745dff 48%, #b13cf2 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        filter: none;
    }

    .smcrm-showcase-copy > p:last-child {
        max-width: 660px;
        margin-top: 10px;
        color: #697397;
        font-size: 12.5px;
        line-height: 1.75;
    }

    .smcrm-demo-window {
        flex: 0 0 auto;
        width: min(100%, 720px);
        min-height: 470px;
        margin: 4px auto 0;
        border-radius: 20px;
        box-shadow:
            0 25px 65px rgba(22, 34, 91, .22),
            inset 0 1px 0 rgba(255, 255, 255, .04),
            0 0 55px rgba(92, 78, 255, .07);
    }

    .smcrm-demo-window:hover,
    .smcrm-demo-window:focus-within {
        box-shadow: 0 30px 78px rgba(22, 34, 91, .27), 0 0 60px rgba(95, 82, 255, .09);
    }

    .smcrm-demo-topbar {
        min-height: 36px;
        padding: 5px 12px;
    }

    .smcrm-demo-layout {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .smcrm-demo-nav {
        gap: 7px;
        padding: 12px 8px;
    }

    .smcrm-demo-nav button {
        min-height: 58px;
    }

    .smcrm-demo-nav svg {
        width: 18px;
        height: 18px;
    }

    .smcrm-demo-nav span {
        font-size: 7.5px;
    }

    .smcrm-demo-main {
        gap: 11px;
        padding: 13px 15px 12px;
    }

    .smcrm-demo-heading small {
        font-size: 8.5px;
    }

    .smcrm-demo-heading h3 {
        font-size: 16px;
    }

    .smcrm-demo-heading > span {
        font-size: 7px;
    }

    .smcrm-demo-kpis {
        gap: 8px;
    }

    .smcrm-demo-kpis article {
        min-height: 66px;
        padding: 9px;
    }

    .smcrm-demo-kpis article > span {
        width: 31px;
        height: 31px;
    }

    .smcrm-demo-kpis svg {
        width: 15px;
        height: 15px;
    }

    .smcrm-demo-kpis small {
        font-size: 7px;
    }

    .smcrm-demo-kpis strong {
        font-size: 20px;
    }

    .smcrm-demo-kpis em {
        font-size: 6.5px;
    }

    .smcrm-demo-analytics {
        grid-template-columns: minmax(0, 1fr) 155px;
        gap: 10px;
    }

    .smcrm-demo-chart {
        min-height: 224px;
        padding: 12px 13px 9px;
    }

    .smcrm-demo-chart header small {
        font-size: 7px;
    }

    .smcrm-demo-chart header strong {
        font-size: 14px;
    }

    .smcrm-demo-chart header > span {
        font-size: 6.2px;
    }

    .smcrm-demo-chart > svg {
        width: min(92%, 500px);
        aspect-ratio: 520 / 230;
        margin: 6px auto 2px;
    }

    .smcrm-demo-chart footer {
        width: min(92%, 500px);
        font-size: 5.8px;
    }

    .smcrm-demo-insight {
        grid-template-rows: 1fr;
    }

    .smcrm-demo-progress {
        min-height: 100%;
        padding: 12px 10px;
        align-content: center;
    }

    .smcrm-demo-activity {
        display: none;
    }

    .smcrm-demo-ring {
        width: 84px;
        height: 84px;
    }

    .smcrm-demo-progress > div:last-child > small {
        font-size: 6.5px;
    }

    .smcrm-demo-progress > div:last-child > strong {
        font-size: 8.8px;
    }

    .smcrm-demo-progress p {
        font-size: 6px;
        line-height: 1.45;
    }

    .smcrm-demo-foot {
        min-height: 29px;
        padding: 6px 12px;
        font-size: 6.5px;
    }

    .smcrm-showcase-benefits {
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: min(100%, 700px);
        margin: 0 auto;
        direction: rtl;
    }

    .smcrm-showcase-benefits article {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-width: 0;
        padding: 9px 14px;
        border-left: 1px solid rgba(77, 87, 160, .12);
    }

    .smcrm-showcase-benefits article:last-child {
        border-left: 0;
    }

    .smcrm-showcase-benefits article > span {
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(73, 87, 207, .15);
        border-radius: 11px;
        color: #5364dc;
        background: rgba(255, 255, 255, .75);
        box-shadow: 0 8px 24px rgba(53, 55, 129, .07);
    }

    .smcrm-showcase-benefits svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

    .smcrm-showcase-benefits article > div {
        display: grid;
        min-width: 0;
    }

    .smcrm-showcase-benefits strong {
        color: #26305f;
        font-size: 9.5px;
        font-weight: 800;
    }

    .smcrm-showcase-benefits small {
        margin-top: 2px;
        color: #8991af;
        font-size: 7px;
        white-space: nowrap;
    }

    .smcrm-login-panel {
        min-height: 0;
        padding: 42px 54px 62px;
        background:
            radial-gradient(circle at 100% 0, rgba(169, 72, 255, .10), transparent 31%),
            radial-gradient(circle at 0 100%, rgba(47, 134, 255, .10), transparent 34%),
            linear-gradient(155deg, rgba(251,251,255,.98), rgba(245,245,255,.96) 58%, rgba(255,255,255,.99));
    }

    .smcrm-login-panel::before {
        border-color: rgba(73, 83, 156, .075);
    }

    .smcrm-login-card {
        width: min(100%, 525px);
        padding: clamp(36px, 3vw, 50px);
        border-radius: 28px;
        background: rgba(255, 255, 255, .88);
        box-shadow: 0 28px 80px rgba(43, 39, 111, .13), inset 0 1px 0 rgba(255, 255, 255, .96);
    }

    .smcrm-login-heading h1 {
        font-size: clamp(34px, 3vw, 43px);
    }

    .smcrm-login-input-wrap {
        min-height: 58px;
    }

    .smcrm-login-input-wrap input {
        height: 56px;
        font-size: 13.5px;
    }

    .smcrm-login-submit {
        min-height: 58px;
        font-size: 13.5px;
    }
}

@media (min-width: 1021px) and (max-height: 820px) {
    .smcrm-login-wrap {
        padding: 12px;
    }

    .smcrm-login-shell {
        min-height: calc(100vh - 24px);
    }

    .smcrm-login-showcase {
        gap: 10px;
        padding: 20px 30px 18px;
    }

    .smcrm-showcase-copy h2 {
        font-size: 38px;
    }

    .smcrm-showcase-copy > p:last-child {
        margin-top: 5px;
        font-size: 10.5px;
    }

    .smcrm-demo-window {
        min-height: 420px;
    }

    .smcrm-showcase-benefits article {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .smcrm-login-panel {
        padding-top: 26px;
        padding-bottom: 46px;
    }

    .smcrm-login-card {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

@media (max-width: 1180px) and (min-width: 1021px) {
    .smcrm-login-showcase {
        padding-right: 28px;
        padding-left: 28px;
    }

    .smcrm-demo-window {
        min-height: 450px;
    }

    .smcrm-demo-analytics {
        grid-template-columns: 1fr;
    }

    .smcrm-demo-insight {
        display: none;
    }

    .smcrm-showcase-benefits small {
        display: none;
    }

    .smcrm-login-panel {
        padding-right: 34px;
        padding-left: 34px;
    }
}

/* =========================
   RC11 — FRIENDLY STAFF / CLIENT ENTRY CLARITY
   Scope: login panel content and field presentation only.
   Dashboard, authentication flow and portal route remain unchanged.
   ========================= */

body.smcrm-login-page .smcrm-login-card {
    width: min(100%, 540px);
    padding: clamp(30px, 2.7vw, 44px);
    border-color: rgba(72, 79, 144, .11);
    background: rgba(255, 255, 255, .92);
    box-shadow:
        0 30px 84px rgba(47, 43, 117, .12),
        inset 0 1px 0 rgba(255, 255, 255, .98);
}

body.smcrm-login-page .smcrm-login-mark {
    min-height: 92px;
    margin-bottom: 6px;
}

body.smcrm-login-page .smcrm-login-audience {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 15px;
    padding: 8px 12px;
    border: 1px solid rgba(88, 83, 221, .13);
    border-radius: 14px;
    color: #35406f;
    background: linear-gradient(135deg, rgba(245, 244, 255, .96), rgba(239, 248, 255, .92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94);
}

body.smcrm-login-page .smcrm-login-audience-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #5b74ff, #8b55f6);
    box-shadow: 0 9px 20px rgba(91, 91, 230, .20);
}

body.smcrm-login-page .smcrm-login-audience-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

body.smcrm-login-page .smcrm-login-audience > span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: right;
}

body.smcrm-login-page .smcrm-login-audience b {
    color: #25305f;
    font-size: 10.5px;
    font-weight: 900;
}

body.smcrm-login-page .smcrm-login-audience small {
    color: #8189a9;
    font-size: 8.5px;
    font-weight: 700;
}

body.smcrm-login-page .smcrm-login-heading {
    margin-bottom: 22px;
}

body.smcrm-login-page .smcrm-login-eyebrow {
    margin-bottom: 8px;
    color: #6f5cf4;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .13em;
}

body.smcrm-login-page .smcrm-login-heading h1 {
    max-width: 410px;
    margin-inline: auto;
    color: #17204a;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: clamp(27px, 2.45vw, 36px);
    line-height: 1.32;
    letter-spacing: -.025em;
}

body.smcrm-login-page .smcrm-login-heading p {
    max-width: 390px;
    margin-top: 8px;
    color: #737c9f;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 11px;
    line-height: 1.8;
}

body.smcrm-login-page .smcrm-login-form {
    gap: 15px;
}

body.smcrm-login-page .smcrm-login-field {
    gap: 7px;
    color: #2e3764;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
}

body.smcrm-login-page .smcrm-login-field-label {
    display: block;
    padding-inline: 3px;
}

body.smcrm-login-page .smcrm-login-input-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 56px;
    padding: 0 7px;
    overflow: hidden;
    border: 1px solid rgba(71, 80, 145, .18) !important;
    border-radius: 15px;
    outline: 0 !important;
    background: #fbfcff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .98),
        0 9px 24px rgba(43, 48, 107, .035) !important;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

body.smcrm-login-page .smcrm-login-input-wrap:hover {
    border-color: rgba(82, 87, 182, .28) !important;
    background: #fff !important;
}

body.smcrm-login-page .smcrm-login-input-wrap:focus-within {
    border-color: rgba(91, 85, 255, .62) !important;
    outline: 0 !important;
    background: #fff !important;
    box-shadow:
        0 0 0 4px rgba(91, 85, 255, .085),
        0 15px 34px rgba(47, 44, 121, .07) !important;
    transform: translateY(-1px);
}

body.smcrm-login-page .smcrm-login-input-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #8d95b4;
    background: rgba(93, 95, 196, .045);
    transition: color .18s ease, background .18s ease;
}

body.smcrm-login-page .smcrm-login-input-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

body.smcrm-login-page .smcrm-login-input-wrap:focus-within .smcrm-login-input-icon {
    color: #6258ef;
    background: rgba(98, 88, 239, .08);
}

body.smcrm-login-page .smcrm-login-input-wrap > svg {
    display: none !important;
}

body.smcrm-login-page .smcrm-login-input-wrap input,
body.smcrm-login-page .smcrm-login-input-wrap input[type="text"],
body.smcrm-login-page .smcrm-login-input-wrap input[type="password"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    color: #222b54 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 54px !important;
    text-align: right;
}

body.smcrm-login-page #smcrm-user-pass {
    direction: ltr;
    text-align: left;
    letter-spacing: .08em;
}

body.smcrm-login-page .smcrm-login-input-wrap input::placeholder {
    color: #a0a7bf !important;
    opacity: 1 !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-align: right;
}

body.smcrm-login-page .smcrm-login-input-wrap input:focus,
body.smcrm-login-page .smcrm-login-input-wrap input:focus-visible,
body.smcrm-login-page .smcrm-login-input-wrap input:invalid {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

body.smcrm-login-page .smcrm-password-toggle,
body.smcrm-login-page button.smcrm-password-toggle {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: grid;
    place-items: center;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    outline: 0 !important;
    color: #8b93af !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.smcrm-login-page .smcrm-password-toggle:hover,
body.smcrm-login-page .smcrm-password-toggle:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    color: #6258ef !important;
    background: rgba(98, 88, 239, .07) !important;
    box-shadow: none !important;
}

body.smcrm-login-page .smcrm-login-options {
    margin-top: 0;
}

body.smcrm-login-page .smcrm-login-options > a {
    color: #5d51dc;
    font-size: 9.5px;
}

body.smcrm-login-page .smcrm-remember {
    color: #78819f;
    font-size: 9.5px;
}

body.smcrm-login-page .smcrm-login-submit,
body.smcrm-login-page button.smcrm-login-submit {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-height: 56px;
    border: 0 !important;
    border-radius: 15px;
    outline: 0 !important;
    color: #fff !important;
    background: linear-gradient(105deg, #385fff 0%, #7060f5 48%, #9c34ed 100%) !important;
    box-shadow: 0 16px 34px rgba(86, 77, 224, .25) !important;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 12px;
}

body.smcrm-login-page .smcrm-login-submit:hover {
    color: #fff !important;
    background: linear-gradient(105deg, #2f58f8 0%, #6856ef 48%, #922be6 100%) !important;
    box-shadow: 0 20px 42px rgba(86, 77, 224, .31) !important;
}

body.smcrm-login-page .smcrm-login-submit:focus-visible {
    outline: 3px solid rgba(102, 91, 239, .20) !important;
    outline-offset: 3px !important;
}

body.smcrm-login-page .smcrm-login-divider {
    display: none !important;
}

body.smcrm-login-page .smcrm-client-access {
    display: grid;
    gap: 10px;
    margin-top: 21px;
    padding: 16px;
    border: 1px solid rgba(65, 117, 210, .13);
    border-radius: 17px;
    background:
        radial-gradient(circle at 100% 0, rgba(66, 137, 255, .09), transparent 44%),
        linear-gradient(135deg, rgba(248, 251, 255, .98), rgba(245, 243, 255, .94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96);
}

body.smcrm-login-page .smcrm-client-access-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.smcrm-login-page .smcrm-client-access-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(57, 127, 232, .15);
    border-radius: 12px;
    color: #3b78dc;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 8px 20px rgba(53, 85, 159, .07);
}

body.smcrm-login-page .smcrm-client-access-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

body.smcrm-login-page .smcrm-client-access-head > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 9px;
}

body.smcrm-login-page .smcrm-client-access-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #2d6fce;
    background: rgba(53, 128, 235, .10);
    font-size: 8px;
    font-weight: 900;
}

body.smcrm-login-page .smcrm-client-access strong {
    color: #24305f;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 11px;
    font-weight: 900;
}

body.smcrm-login-page .smcrm-client-access > p {
    margin: 0;
    color: #7a84a5;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 9px;
    line-height: 1.7;
}

body.smcrm-login-page .smcrm-client-login-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    padding: 0 13px;
    border: 1px solid rgba(73, 91, 177, .14);
    border-radius: 12px;
    color: #4d55a4;
    background: rgba(255, 255, 255, .76);
    box-shadow: none;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 9.5px;
    font-weight: 900;
}

body.smcrm-login-page .smcrm-client-login-link:hover {
    border-color: rgba(89, 82, 224, .30);
    color: #574bd8;
    background: #fff;
    box-shadow: 0 11px 24px rgba(65, 65, 160, .07);
}

body.smcrm-login-page .smcrm-client-login-link svg {
    width: 15px;
    height: 15px;
    transform: rotate(180deg);
}

body.smcrm-login-page .smcrm-login-trust {
    margin-top: 14px;
    color: #8b93ad;
    font-size: 8.5px;
}

@media (min-width: 1021px) and (max-height: 880px) {
    body.smcrm-login-page .smcrm-login-card {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    body.smcrm-login-page .smcrm-login-mark {
        min-height: 76px;
        margin-bottom: 2px;
        transform: scale(.88);
        transform-origin: center top;
    }

    body.smcrm-login-page .smcrm-login-audience {
        margin-bottom: 10px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    body.smcrm-login-page .smcrm-login-heading {
        margin-bottom: 15px;
    }

    body.smcrm-login-page .smcrm-login-heading h1 {
        font-size: 27px;
    }

    body.smcrm-login-page .smcrm-login-heading p {
        margin-top: 5px;
        font-size: 9.5px;
    }

    body.smcrm-login-page .smcrm-login-form {
        gap: 11px;
    }

    body.smcrm-login-page .smcrm-login-input-wrap {
        min-height: 50px;
    }

    body.smcrm-login-page .smcrm-login-input-wrap input,
    body.smcrm-login-page .smcrm-login-input-wrap input[type="text"],
    body.smcrm-login-page .smcrm-login-input-wrap input[type="password"] {
        height: 48px !important;
        line-height: 48px !important;
    }

    body.smcrm-login-page .smcrm-login-submit,
    body.smcrm-login-page button.smcrm-login-submit {
        min-height: 50px;
    }

    body.smcrm-login-page .smcrm-client-access {
        gap: 7px;
        margin-top: 14px;
        padding: 11px 13px;
    }

    body.smcrm-login-page .smcrm-client-access > p {
        display: none;
    }

    body.smcrm-login-page .smcrm-login-trust {
        margin-top: 9px;
    }
}

@media (max-width: 640px) {
    body.smcrm-login-page .smcrm-login-card {
        padding: 26px 18px;
        border-radius: 23px;
    }

    body.smcrm-login-page .smcrm-login-audience {
        width: 100%;
        justify-content: flex-start;
    }

    body.smcrm-login-page .smcrm-login-heading h1 {
        font-size: 26px;
    }

    body.smcrm-login-page .smcrm-login-options {
        align-items: flex-start;
        gap: 10px;
    }

    body.smcrm-login-page .smcrm-remember b {
        max-width: 130px;
    }
}


/* =========================================================
   RC12 — VIEWPORT FIT + WHITE-LABEL LOGIN CLOSURE
   Fits desktop/laptop login in one viewport, fixes CTA icon alignment,
   adds recovery presentation and consumes site-level brand settings.
   ========================================================= */

.smcrm-login-wrap {
    --sml-brand-primary: #8b5cf6;
    --sml-brand-accent: #0ea5e9;
}

body.smcrm-login-page .smcrm-login-wave i {
    background: linear-gradient(180deg, var(--sml-brand-accent) 0%, #4d6cff 42%, var(--sml-brand-primary) 78%, #ec4899 100%);
}

body.smcrm-login-page .smcrm-login-brand-watermark {
    position: absolute;
    inset-inline-end: -28px;
    bottom: -24px;
    width: min(42%, 300px);
    max-height: 300px;
    object-fit: contain;
    opacity: .035;
    filter: grayscale(.15) saturate(.8);
    pointer-events: none;
    user-select: none;
}

body.smcrm-login-page .smcrm-login-submit,
body.smcrm-login-page button.smcrm-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(105deg, var(--sml-brand-accent) 0%, #6266f4 49%, var(--sml-brand-primary) 100%) !important;
}

body.smcrm-login-page .smcrm-login-submit > span {
    display: inline-flex;
    align-items: center;
    line-height: 1.25;
}

body.smcrm-login-page .smcrm-login-submit > svg,
body.smcrm-login-page .smcrm-client-login-link > svg,
body.smcrm-login-page .smcrm-login-back-link > svg {
    display: block;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    transform: none;
    fill: currentColor;
    align-self: center;
}

body.smcrm-login-page .smcrm-client-login-link {
    justify-content: center;
    gap: 8px;
}

body.smcrm-login-page .smcrm-client-access-badge {
    color: color-mix(in srgb, var(--sml-brand-accent) 70%, #264a9b);
}

body.smcrm-login-page .smcrm-recovery-form {
    gap: 14px;
}

body.smcrm-login-page .smcrm-recovery-help {
    margin: -3px 0 0;
    color: #7e87a7;
    font-size: 9px;
    line-height: 1.7;
    text-align: center;
}

body.smcrm-login-page .smcrm-login-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    border: 1px solid rgba(74, 83, 160, .13);
    border-radius: 12px;
    color: #505a9f;
    background: rgba(250, 251, 255, .82);
    font-size: 10px;
    font-weight: 800;
}

body.smcrm-login-page .smcrm-login-back-link:hover,
body.smcrm-login-page .smcrm-login-back-link:focus-visible {
    border-color: rgba(91, 85, 255, .28);
    color: #5b50d9;
    background: #fff;
    outline: 0;
}

@media (min-width: 1021px) {
    html,
    body.smcrm-login-page {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body.smcrm-login-page .smcrm-login-wrap {
        width: 100%;
        height: 100svh;
        min-height: 0;
        padding: 12px;
        overflow: hidden;
    }

    body.smcrm-login-page .smcrm-login-shell {
        width: min(1500px, 100%);
        height: min(930px, calc(100svh - 24px));
        min-height: 0;
        max-height: calc(100svh - 24px);
    }

    body.smcrm-login-page .smcrm-login-showcase,
    body.smcrm-login-page .smcrm-login-panel {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body.smcrm-login-page .smcrm-login-panel {
        padding-top: clamp(18px, 3vh, 38px);
        padding-bottom: clamp(20px, 3.5vh, 44px);
    }

    body.smcrm-login-page .smcrm-login-card {
        max-height: calc(100svh - 54px);
    }
}

@media (min-width: 1021px) and (max-height: 920px) {
    body.smcrm-login-page .smcrm-login-showcase {
        gap: 8px;
        padding: 18px 28px 15px;
    }

    body.smcrm-login-page .smcrm-login-secure-badge {
        min-height: 30px;
        padding: 6px 11px;
        font-size: 9px;
    }

    body.smcrm-login-page .smcrm-showcase-copy h2 {
        margin-top: 0;
        font-size: clamp(31px, 2.55vw, 42px);
    }

    body.smcrm-login-page .smcrm-showcase-copy > p:last-child {
        margin-top: 4px;
        font-size: 9.5px;
    }

    body.smcrm-login-page .smcrm-demo-window {
        min-height: 380px;
        margin-top: 0;
    }

    body.smcrm-login-page .smcrm-demo-kpis article {
        min-height: 58px;
    }

    body.smcrm-login-page .smcrm-demo-chart {
        min-height: 196px;
    }

    body.smcrm-login-page .smcrm-showcase-benefits article {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    body.smcrm-login-page .smcrm-login-panel {
        padding-inline: clamp(26px, 3vw, 48px);
    }

    body.smcrm-login-page .smcrm-login-card {
        padding: 20px 28px;
        border-radius: 24px;
    }

    body.smcrm-login-page .smcrm-login-mark {
        min-height: 66px;
        margin-bottom: 0;
    }

    body.smcrm-login-page .smcrm-login-mark > img {
        width: 62px;
        height: 68px;
    }

    body.smcrm-login-page .smcrm-login-wave-light {
        right: calc(50% - 78px);
        top: 29px;
        width: 43px;
    }

    body.smcrm-login-page .smcrm-login-audience {
        margin-bottom: 8px;
        padding: 5px 9px;
    }

    body.smcrm-login-page .smcrm-login-audience-icon {
        width: 29px;
        height: 29px;
    }

    body.smcrm-login-page .smcrm-login-heading {
        margin-bottom: 11px;
    }

    body.smcrm-login-page .smcrm-login-eyebrow {
        margin-bottom: 4px;
        font-size: 7px;
    }

    body.smcrm-login-page .smcrm-login-heading h1 {
        font-size: 25px;
        line-height: 1.2;
    }

    body.smcrm-login-page .smcrm-login-heading p {
        margin-top: 4px;
        font-size: 9px;
        line-height: 1.55;
    }

    body.smcrm-login-page .smcrm-login-form {
        gap: 9px;
    }

    body.smcrm-login-page .smcrm-login-field {
        gap: 4px;
        font-size: 8.8px;
    }

    body.smcrm-login-page .smcrm-login-input-wrap {
        min-height: 46px;
        border-radius: 13px;
    }

    body.smcrm-login-page .smcrm-login-input-wrap input,
    body.smcrm-login-page .smcrm-login-input-wrap input[type="text"],
    body.smcrm-login-page .smcrm-login-input-wrap input[type="password"] {
        height: 44px !important;
        line-height: 44px !important;
        font-size: 10.5px !important;
    }

    body.smcrm-login-page .smcrm-login-options {
        min-height: 22px;
    }

    body.smcrm-login-page .smcrm-login-submit,
    body.smcrm-login-page button.smcrm-login-submit {
        min-height: 47px;
    }

    body.smcrm-login-page .smcrm-client-access {
        gap: 6px;
        margin-top: 10px;
        padding: 10px 12px;
    }

    body.smcrm-login-page .smcrm-client-access-icon {
        width: 30px;
        height: 30px;
    }

    body.smcrm-login-page .smcrm-client-access > p {
        font-size: 8px;
        line-height: 1.5;
    }

    body.smcrm-login-page .smcrm-client-login-link {
        min-height: 38px;
    }

    body.smcrm-login-page .smcrm-login-trust {
        margin-top: 7px;
        font-size: 7.6px;
    }

    body.smcrm-login-page .smcrm-login-panel-foot {
        bottom: 10px;
        font-size: 7px;
    }
}

@media (min-width: 1021px) and (max-height: 760px) {
    body.smcrm-login-page .smcrm-showcase-benefits,
    body.smcrm-login-page .smcrm-login-trust,
    body.smcrm-login-page .smcrm-login-panel-foot {
        display: none;
    }

    body.smcrm-login-page .smcrm-demo-window {
        min-height: 330px;
    }

    body.smcrm-login-page .smcrm-client-access > p,
    body.smcrm-login-page .smcrm-login-audience small,
    body.smcrm-login-page .smcrm-login-eyebrow {
        display: none;
    }

    body.smcrm-login-page .smcrm-login-card {
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

/* =========================================================
   RC13 — UNIFIED STAFF / CLIENT GATEWAY + CRISP 3D MOTION
   ========================================================= */
body.smcrm-login-page,
body.smcrm-login-page button,
body.smcrm-login-page input,
body.smcrm-login-page textarea,
body.smcrm-login-page select {
    font-family: "Cairo", Tahoma, Arial, sans-serif;
}

.smcrm-login-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    margin: 2px 0 10px;
    padding: 5px;
    border: 1px solid rgba(94, 91, 174, .12);
    border-radius: 14px;
    background: rgba(244, 245, 255, .78);
}

.smcrm-login-mode-switch a {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #6d7397;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}

.smcrm-login-mode-switch a span {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.smcrm-login-mode-switch a small {
    font-size: 8px;
    font-weight: 600;
    line-height: 1.35;
    opacity: .78;
}

.smcrm-login-mode-switch a:hover,
.smcrm-login-mode-switch a:focus-visible {
    border-color: rgba(96, 91, 255, .22);
    color: #38447f;
    outline: none;
}

.smcrm-login-mode-switch a.is-active {
    border-color: rgba(91, 96, 232, .18);
    color: #242f68;
    background: #fff;
    box-shadow: 0 8px 24px rgba(61, 56, 143, .10);
}

.smcrm-login-audience-client {
    border-color: rgba(35, 158, 255, .18);
    background: linear-gradient(135deg, rgba(233, 247, 255, .88), rgba(243, 239, 255, .86));
}

.smcrm-login-audience-client .smcrm-login-audience-icon {
    color: #397ef4;
    background: linear-gradient(135deg, #e6f5ff, #eee9ff);
}

.smcrm-login-switch-note {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    color: #8a90ad;
    font-size: 9px;
    font-weight: 600;
}

.smcrm-login-switch-note a {
    color: #5855d9;
    font-weight: 800;
}

.smcrm-login-switch-note a:hover,
.smcrm-login-switch-note a:focus-visible {
    color: #2f86ff;
    outline: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Preserve the premium left/right interaction without rotating the text layer.
   The frame/highlight receives the perspective tilt; the readable content only
   moves on whole pixels, preventing Windows/Chrome sub-pixel raster blur. */
.smcrm-demo-window {
    --demo-shift-x: 0px;
    --demo-shift-y: 0px;
    --demo-glow-x: 50%;
    --demo-glow-y: 25%;
    position: relative;
    isolation: isolate;
    transform: translate(var(--demo-shift-x), var(--demo-shift-y)) !important;
    transform-style: flat !important;
    will-change: auto !important;
    transition: transform .18s ease, border-color .25s ease, box-shadow .25s ease;
}

.smcrm-demo-window::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border: 1px solid rgba(130, 167, 239, .20);
    border-radius: inherit;
    background:
        radial-gradient(circle at var(--demo-glow-x) var(--demo-glow-y), rgba(73, 151, 255, .10), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, .025), transparent 36%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    transform: perspective(1400px) rotateX(var(--demo-tilt-x)) rotateY(var(--demo-tilt-y)) scale(.998);
    transform-origin: center;
    backface-visibility: hidden;
    transition: transform .18s ease, border-color .25s ease;
}

.smcrm-demo-window > * {
    position: relative;
    z-index: 1;
}

.smcrm-demo-window:hover::before,
.smcrm-demo-window:focus-within::before {
    border-color: rgba(116, 165, 255, .38);
}

@media (max-height: 860px) and (min-width: 901px) {
    .smcrm-login-mode-switch {
        margin-bottom: 7px;
    }
    .smcrm-login-mode-switch a {
        min-height: 38px;
    }
    .smcrm-login-mode-switch a small {
        display: none;
    }
    .smcrm-login-switch-note {
        margin-top: 5px;
    }
}

@media (max-width: 620px) {
    .smcrm-login-mode-switch a span {
        font-size: 11px;
    }
    .smcrm-login-mode-switch a small {
        font-size: 7.5px;
    }
}
