/* CRM V50.94 — Left-aligned full-screen CRM login + mobile fit refinements */
:root{
    --v593-blue:#2f80ed;
    --v593-green:#1abe17;
    --v593-orange:#ffa201;
    --v593-red:#ef1e1e;
    --v593-ink:#10284a;
    --v593-glass:rgba(248,252,255,.69);
    --v593-border:rgba(255,255,255,.72);
}
html,body{height:100%;min-height:100%;overflow:hidden;}
body.login-v593{
    margin:0;
    min-height:100dvh;
    height:100dvh;
    overflow:hidden;
    color:var(--v593-ink);
    background:#dbe7f4;
    font-family:"Cairo",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.login-v593-stage{
    position:relative;
    height:100dvh;
    min-height:100dvh;
    display:grid;
    grid-template-columns:minmax(390px, 38vw) minmax(0, 1fr);
    direction:ltr;
    isolation:isolate;
    overflow:clip;
}
.login-v593-bg{
    position:absolute;
    inset:-8px;
    z-index:-4;
    background:center/cover no-repeat url('./login-crm-hero-v593.webp');
    filter:saturate(.96) contrast(.98) blur(2px);
    transform:scale(1.014);
}
.login-v593-stage::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-3;
    background:
        linear-gradient(90deg,rgba(236,246,255,.90) 0%,rgba(232,243,253,.74) 23%,rgba(228,240,251,.18) 48%,rgba(12,36,66,.05) 100%),
        linear-gradient(180deg,rgba(255,255,255,.15),rgba(9,34,66,.06));
}
.login-v593-stage::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:-2;
    pointer-events:none;
    background:
        radial-gradient(circle at 21% 22%,rgba(255,255,255,.28),transparent 26%),
        radial-gradient(circle at 66% 76%,rgba(47,128,237,.10),transparent 28%);
}
.login-v593-side,
.login-v593-card,
.login-v593-form,
.login-v593-heading,
.login-v593-options{direction:rtl;}
.login-v593-side{
    min-height:100%;
    padding:clamp(24px,3vh,40px) clamp(18px,2.8vw,42px);
    display:flex;
    align-items:center;
    justify-content:flex-start;
    position:relative;
    z-index:2;
}
.login-v593-card{
    width:min(100%,540px);
    padding:clamp(24px,2.2vw,40px);
    border:1px solid var(--v593-border);
    border-radius:34px;
    background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(240,248,255,.52));
    box-shadow:0 28px 72px rgba(20,58,96,.18),inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter:blur(22px) saturate(135%);
    -webkit-backdrop-filter:blur(22px) saturate(135%);
}
.login-v593-brand{display:flex;align-items:center;justify-content:center;min-height:100px;margin-bottom:8px;}
.login-v593-brand img{display:block;max-width:min(100%,320px);max-height:102px;object-fit:contain;}
.login-v593-brand-fallback{width:min(100%,320px);height:auto;display:block;}
.login-v593-icon-ribbon{display:flex;justify-content:center;gap:10px;margin:4px 0 22px;}
.login-v593-icon-ribbon span{
    width:45px;height:45px;border-radius:14px;
    display:grid;place-items:center;
    color:#1d5ca8;
    border:1px solid rgba(255,255,255,.88);
    background:rgba(255,255,255,.38);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.login-v593-icon-ribbon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.login-v593-heading{text-align:center;margin-bottom:22px;}
.login-v593-heading h1{margin:0 0 8px;font-size:clamp(29px,2.2vw,42px);line-height:1.15;font-weight:850;color:#10284a;}
.login-v593-heading p{margin:0;color:#5d6d82;font-size:14px;line-height:1.8;}
.login-v593-alert{margin:0 0 18px;padding:12px 14px;border-radius:14px;background:rgba(239,30,30,.08);border:1px solid rgba(239,30,30,.16);color:#9c2020;font-size:13px;}
.login-v593-form{display:grid;gap:16px;}
.login-v593-field{display:grid;gap:7px;font-weight:700;font-size:13px;color:#183254;}
.login-v593-input{
    height:56px;
    display:flex;align-items:center;gap:12px;
    border:1px solid rgba(36,88,137,.20);
    border-radius:15px;
    background:rgba(255,255,255,.48);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
    transition:.2s ease;
    overflow:hidden;
}
.login-v593-input:focus-within{border-color:rgba(47,128,237,.55);box-shadow:0 0 0 4px rgba(47,128,237,.09),inset 0 1px 0 rgba(255,255,255,.9);background:rgba(255,255,255,.67);}
.login-v593-input>svg{width:21px;height:21px;margin-inline-start:17px;fill:none;stroke:#173c66;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none;}
.login-v593-input input{border:0;outline:0;background:transparent;height:100%;min-width:0;flex:1;padding:0 8px;color:#10284a;font:inherit;font-weight:500;direction:ltr;text-align:right;}
.login-v593-input input::placeholder{color:#8c9caf;}
.login-v593-password-button{width:52px;height:100%;border:0;background:transparent;display:grid;place-items:center;color:#20476f;cursor:pointer;}
.login-v593-password-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.login-v593-password-button .eye-off{display:none;}
.login-v593-password-button[aria-pressed="true"] .eye-on{display:none;}
.login-v593-password-button[aria-pressed="true"] .eye-off{display:block;}
.login-v593-options{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;}
.login-v593-remember{display:inline-flex;align-items:center;gap:8px;color:#53667e;cursor:pointer;}
.login-v593-remember input{width:18px;height:18px;accent-color:var(--v593-blue);}
.login-v593-safe{display:inline-flex;align-items:center;gap:6px;color:#0d8f75;font-weight:700;}
.login-v593-safe svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;}
.login-v593-submit{
    height:58px;border:0;border-radius:16px;cursor:pointer;
    display:flex;align-items:center;justify-content:center;gap:12px;
    color:#fff;font:inherit;font-size:17px;font-weight:850;
    background:linear-gradient(110deg,#0ecbb1 0%,#168bdc 56%,#2f62ed 100%);
    box-shadow:0 14px 30px rgba(25,114,211,.22);
    transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.login-v593-submit:hover{transform:translateY(-1px);box-shadow:0 18px 35px rgba(25,114,211,.28);filter:saturate(1.08);}
.login-v593-submit svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.login-v593-footer{text-align:center;margin-top:24px;color:#728398;font-size:11px;}
.login-v593-visual{position:relative;min-height:100%;z-index:1;pointer-events:none;direction:rtl;}
.login-v593-float{
    position:absolute;
    display:flex;align-items:center;justify-content:center;gap:15px;
    min-width:132px;min-height:74px;padding:12px 18px;
    border-radius:22px;
    border:1px solid rgba(255,255,255,.74);
    background:rgba(247,252,255,.56);
    box-shadow:0 18px 45px rgba(37,72,105,.15),inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter:blur(18px) saturate(130%);
    -webkit-backdrop-filter:blur(18px) saturate(130%);
}
.login-v593-float svg{width:31px;height:31px;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.login-v593-float.is-contact{top:11%;left:8%;gap:12px;}
.login-v593-float.is-contact span,.login-v593-float.is-status span{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.72);}
.login-v593-float.is-contact span:nth-child(1){color:#18a879}.login-v593-float.is-contact span:nth-child(2){color:#12aa59}.login-v593-float.is-contact span:nth-child(3){color:#2f80ed}
.login-v593-float.is-status{right:7%;top:26%;flex-direction:column;min-width:76px;min-height:210px;gap:11px;}
.login-v593-float.is-status span{width:34px;height:34px;border-radius:11px;}
.login-v593-float.is-status span:nth-child(1){color:#2f80ed}.login-v593-float.is-status span:nth-child(2){color:#1abe17}.login-v593-float.is-status span:nth-child(3){color:#ffa201}.login-v593-float.is-status span:nth-child(4){color:#7653da}
.login-v593-float.is-network{left:4%;top:42%;min-width:91px;min-height:220px;flex-direction:column;}
.login-v593-float.is-network span{width:49px;height:49px;border-radius:15px;display:grid;place-items:center;background:rgba(255,255,255,.68);}
.login-v593-float.is-network span:nth-child(1){color:#1abe17}.login-v593-float.is-network span:nth-child(2){color:#0ca87b}.login-v593-float.is-network span:nth-child(3){color:#2f80ed}
.login-v593-bottom-icons{
    position:absolute;right:7%;left:10%;bottom:4.8%;height:84px;
    display:grid;grid-template-columns:repeat(6,1fr);align-items:center;
    border-radius:25px;border:1px solid rgba(255,255,255,.72);
    background:rgba(245,251,255,.55);backdrop-filter:blur(18px) saturate(125%);-webkit-backdrop-filter:blur(18px) saturate(125%);
    box-shadow:0 18px 45px rgba(30,66,105,.14),inset 0 1px 0 rgba(255,255,255,.9);
}
.login-v593-bottom-icons span{height:46px;display:grid;place-items:center;color:#1e63b5;border-inline-start:1px solid rgba(74,105,139,.12);}
.login-v593-bottom-icons span:first-child{border-inline-start:0;}
.login-v593-bottom-icons svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;}
.login-v593-settings-hint{display:none;}
@media (max-width:1180px){
    .login-v593-stage{grid-template-columns:minmax(360px, 42vw) minmax(0,1fr);}
    .login-v593-float.is-network{display:none;}
    .login-v593-bottom-icons{right:5%;left:5%;}
}
@media (min-width:901px) and (max-height:880px){
    .login-v593-side{padding-block:18px;}
    .login-v593-card{padding:22px 24px;border-radius:28px;}
    .login-v593-brand{min-height:86px;}
    .login-v593-brand img{max-height:88px;}
    .login-v593-icon-ribbon{margin-bottom:18px;}
    .login-v593-heading{margin-bottom:18px;}
    .login-v593-heading h1{font-size:clamp(27px,2vw,36px);}
    .login-v593-form{gap:13px;}
    .login-v593-input{height:52px;}
    .login-v593-submit{height:54px;}
    .login-v593-bottom-icons{bottom:3.2%;height:72px;}
    .login-v593-bottom-icons svg{width:26px;height:26px;}
    .login-v593-float.is-contact{top:10%;}
    .login-v593-float.is-status{top:23%;min-height:180px;}
}
@media (max-width:900px){
    html,body,body.login-v593{overflow:hidden;}
    .login-v593-stage{
        display:block;
        min-height:100dvh;
        height:100dvh;
    }
    .login-v593-stage::before{background:linear-gradient(180deg,rgba(236,246,255,.72),rgba(226,239,250,.48)),rgba(225,240,250,.24);}
    .login-v593-side{min-height:100dvh;padding:16px;justify-content:center;}
    .login-v593-card{width:min(100%,520px);padding:22px 18px;border-radius:24px;background:rgba(248,252,255,.82);}
    .login-v593-visual{display:none;}
    .login-v593-heading h1{font-size:32px;}
    .login-v593-heading p{font-size:13px;}
}
@media (max-width:520px){
    .login-v593-side{padding:12px;}
    .login-v593-brand{min-height:76px;}
    .login-v593-brand img{max-height:76px;max-width:240px;}
    .login-v593-brand-fallback{max-width:240px;}
    .login-v593-icon-ribbon{margin:2px 0 16px;gap:8px;}
    .login-v593-icon-ribbon span{width:40px;height:40px;border-radius:12px;}
    .login-v593-icon-ribbon svg{width:20px;height:20px;}
    .login-v593-card{padding:18px 16px;}
    .login-v593-heading{margin-bottom:16px;}
    .login-v593-heading h1{font-size:28px;}
    .login-v593-input{height:52px;}
    .login-v593-submit{height:54px;font-size:16px;}
    .login-v593-options{align-items:flex-start;flex-direction:column;gap:10px;}
    .login-v593-footer{margin-top:18px;font-size:10px;}
}
@media (max-width:380px){
    .login-v593-heading h1{font-size:25px;}
    .login-v593-card{padding:16px 14px;border-radius:20px;}
    .login-v593-field{font-size:12px;}
    .login-v593-input>svg{margin-inline-start:14px;}
}
