/* Login-only split-screen skin. Does not affect authenticated ERP pages. */
html.els-login,
body.els-login {
    min-height: 100%;
    height: auto;
    margin: 0;
    background: #f3f6fb;
    color: #1a2332;
    font-family: "Poppins", Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: auto !important;
}

body.els-login {
    min-height: 100vh;
}

.els-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.els-brand {
    position: relative;
    flex: 1.35;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    color: #fff;
    background:
        radial-gradient(720px 420px at 50% 18%, rgba(79, 140, 255, 0.28), transparent 58%),
        radial-gradient(520px 360px at 12% 88%, rgba(20, 60, 140, 0.45), transparent 60%),
        linear-gradient(165deg, #06122b 0%, #0b1f4a 48%, #12316e 100%);
    overflow: hidden;
}

.els-brand:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.45;
}

.els-brand-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    text-align: center;
}

.els-brand-logo {
    height: 78px;
    width: auto;
    margin-bottom: 18px;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}

.els-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #d6e4ff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.els-brand h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
}

.els-brand-tag {
    margin: 0 0 12px;
    color: #bcd2ff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.els-brand-lead {
    margin: 0 auto 28px;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.6;
}

.els-mods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.els-mod {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    padding: 14px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.els-mod svg {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.els-mod span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.els-panel {
    flex: 0 0 44%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
    background: #eef2f8;
    box-shadow: inset 8px 0 24px rgba(6, 18, 43, 0.04);
}

.els-panel-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.els-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(16, 36, 78, 0.1);
    padding: 32px 32px 28px;
}

.els-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.els-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e8eefc;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.els-card-icon svg {
    width: 22px;
    height: 22px;
}

.els-card-head h2 {
    margin: 0;
    color: #10243e;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.els-card-head p {
    margin: 4px 0 0;
    color: #6b7a90;
    font-size: 13px;
}

.els-login .lang-switcher .btn {
    border-color: #d5deea;
    color: #1d4ed8;
    background: #fff;
}

.els-login .lang-switcher .btn.active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.els-login .form-group {
    margin-bottom: 16px;
}

.els-login .form-group label {
    display: block;
    margin-bottom: 6px;
    color: #5b6b82;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.els-field {
    position: relative;
}

.els-login .form-control {
    height: 48px;
    border: 1px solid #d9e1ec;
    background: #f6f8fc;
    border-radius: 10px;
    padding-right: 44px;
    box-shadow: none;
}

html[dir="rtl"] .els-login .form-control {
    padding-right: 14px;
    padding-left: 44px;
}

.els-login .form-control:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
    background: #fff;
}

.els-eye {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6b7a90;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

html[dir="rtl"] .els-eye {
    right: auto;
    left: 12px;
}

.els-login a {
    color: #1d4ed8;
}

.els-login a:hover {
    color: #163ea8;
}

.els-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff1f0;
    color: #b42318;
    font-weight: 600;
    font-size: 13px;
}

.els-submit {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 16px;
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.22);
}

.els-submit:hover,
.els-submit:focus {
    color: #fff;
    background: #163ea8;
}

.els-card-links {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 13px;
}

.els-portal-link {
    display: block;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eef3ff;
    border: 1px solid #d5e0f7;
    text-decoration: none !important;
    color: #163ea8 !important;
}

.els-portal-link strong {
    display: block;
    font-size: 14px;
}

.els-portal-link span {
    display: block;
    margin-top: 2px;
    color: #5b6b82;
    font-size: 12px;
    font-weight: 500;
}

.els-portal-link:hover {
    border-color: #1d4ed8;
    background: #e4ecff;
}

.els-cf {
    min-height: 65px;
}

.els-apps {
    margin-top: 18px;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 36, 78, 0.07);
}

.els-apps h3 {
    margin: 0 0 4px;
    color: #10243e;
    font-size: 16px;
    font-weight: 700;
}

.els-apps > p {
    margin: 0 0 14px;
    color: #6b7a90;
    font-size: 13px;
    line-height: 1.5;
}

.els-app-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.els-app-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none !important;
    color: #10243e !important;
    background: #f6f8fc;
    border: 1px solid #dce4f0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.els-app-btn:hover {
    transform: translateY(-2px);
    border-color: #1d4ed8;
    box-shadow: 0 10px 18px rgba(16, 36, 78, 0.1);
    color: #10243e !important;
}

.els-app-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.els-app-ico svg {
    width: 22px;
    height: 22px;
}

.els-app-btn.android .els-app-ico {
    background: #e8f8ee;
    color: #3ddc84;
}

.els-app-btn.iphone .els-app-ico {
    background: #eceff3;
    color: #111;
}

.els-app-btn strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.els-app-btn em {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: #6b7a90;
    font-weight: 500;
}

.els-app-note {
    margin: 12px 0 0;
    color: #7a8799;
    font-size: 12px;
    line-height: 1.45;
}

.els-copy {
    margin: 18px 0 0;
    text-align: center;
    color: #8a96a8;
    font-size: 12px;
}

html[dir="rtl"] .els-split {
    flex-direction: row-reverse;
}

html[dir="rtl"] .els-panel {
    box-shadow: inset -8px 0 24px rgba(6, 18, 43, 0.04);
}

@media (max-width: 991px) {
    .els-split,
    html[dir="rtl"] .els-split {
        flex-direction: column;
    }
    .els-brand {
        padding: 32px 20px 28px;
    }
    .els-brand h1 {
        font-size: 28px;
    }
    .els-mods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .els-panel {
        flex: 1 1 auto;
        max-width: none;
        padding: 20px 16px 28px;
    }
    .els-app-links {
        grid-template-columns: 1fr;
    }
}
