﻿:root {
    --border-radius-md: 15px;
    --color-background: #1D4ED8;
    --primary: #1D4ED8;
    --gradient-start: #2563EB;
    --gradient-end: #3B82F6;
    --hover-gradient-start: #3B82F6;
    --hover-gradient-end: #60A5FA;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wrap {
    display: flex;
    min-height: 800px;
    overflow: hidden;    
}

.side {
    width: 100%;
    background: var(--color-background);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
@media (max-width: 768px) {
    .wrap {
        min-height: auto;
        flex-direction: column;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .wrap {
        min-height: auto;
        flex-direction: column;
        overflow: auto;
    }
    .erp-login-card {
        min-height: 400px;
        padding: 0.8rem 0.5rem;
    }
    .glass-card.card-body{
        min-height:80vh;
    }
 }



    .side h1 {
        font-size: 22px;
        font-weight: 500;
        color: #fff;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    .side .tagline {
        font-size: 13px;
        color: rgba(255,255,255,0.75);
        line-height: 1.65;
        margin-bottom: 2rem;
    }

    .modules {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mod {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 12px;
        background: rgba(255,255,255,0.09);
        border-radius: var(--border-radius-md);
        border: 0.5px solid rgba(255,255,255,0.14);
    }

    .mod-icon {
        width: 30px;
        height: 30px;
        border-radius: 6px;
        background: rgba(255,255,255,0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .mod-icon i {
            font-size: 15px;
            color: #fff;
        }

    .mod-label {
        font-size: 12px;
        font-weight: 500;
        color: #fff;
    }

    .mod-desc {
        font-size: 11px;
        color: rgba(255,255,255,0.6);
        line-height: 1.4;
        margin-top: 1px;
    }

    .side-footer {
        font-size: 11px;
        color: rgba(255,255,255,0.4);
    }

    .login {
        flex: 1;
        background: var(--color-background-primary);
        padding: 2.5rem 2.25rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

        .login h2 {
            font-size: 20px;
            font-weight: 500;
            color: var(--color-text-primary);
            margin-bottom: 0.25rem;
        }

        .login .sub {
            font-size: 13px;
            color: var(--color-text-secondary);
            margin-bottom: 2rem;
        }

    .field {
        margin-bottom: 1.25rem;
    }

        .field label {
            display: block;
            font-size: 12px;
            color: var(--color-text-secondary);
            margin-bottom: 5px;
            font-weight: 500;
        }

        .field input {
            width: 100%;
            padding: 9px 12px;
            font-size: 14px;
            border-radius: var(--border-radius-md);
            border: 0.5px solid var(--color-border-secondary);
            background: var(--color-background-secondary);
            color: var(--color-text-primary);
            outline: none;
            font-family: var(--font-sans);
        }

            .field input:focus {
                border-color: var(--color-background);
                box-shadow: 0 0 0 2px rgba(24,95,165,0.15);
            }

    .pass-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 1.5rem;
    }

        .pass-row label {
            font-size: 12px;
            color: var(--color-text-secondary);
            cursor: pointer;
        }

    .forgot {
        margin-left: auto;
        font-size: 12px;
        color: var(--color-background);
        cursor: pointer;
        background: none;
        border: none;
        font-family: var(--font-sans);
    }

        .forgot:hover {
            text-decoration: underline;
        }

    .btn-login {
        width: 100%;
        padding: 10px;
        background: var(--color-background);
        color: #fff;
        border: none;
        border-radius: var(--border-radius-md);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        font-family: var(--font-sans);
        letter-spacing: 0.01em;
    }

        .btn-login:hover {
            background: #0C447C;
        }

    .btn-clear {
        width: 100%;
        padding: 10px;
        background: none;
        color: var(--color-text-secondary);
        border: 0.5px solid var(--color-border-secondary);
        border-radius: var(--border-radius-md);
        font-size: 14px;
        cursor: pointer;
        font-family: var(--font-sans);
        margin-top: 8px;
    }

        .btn-clear:hover {
            background: var(--color-background-secondary);
        }

    #vis-container {
        width: 100%;
        position: relative;
        overflow: hidden;
    }

    .erp-login-page {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
    }

    /* ── Outer card ─────────────────────────────────────────── */
    .erp-login-card {
        display: flex;
        width: 100%;
        max-width: 1000px;
        min-height: 650px;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 10px 48px rgba(10,35,80,.14), 0 2px 10px rgba(10,35,80,.07);
        background: var(--color-background);
    }

    .erp-side {
        width: 42%;
        background: linear-gradient(155deg, #1b4f9a 0%, #0e2f63 55%, #081c3c 100%);
        padding: 2.75rem 2.25rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
    }

        .erp-side::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
            background-size: 24px 24px;
            pointer-events: none;
        }

    .erp-side-body {
        position: relative;
        z-index: 1;
    }

    /* brand */
    .erp-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 2.25rem;
    }

.erp-brand-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255,0.75);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 11px;
    align-content: center;
    justify-content: center;
}

    .erp-brand-icon img {
        width: 58px;
        height: 58px;
        object-fit: contain;
        display: block;
    }
        .erp-brand-icon svg {
            width: 22px;
            height: 22px;
            fill: none;
            stroke: #fff;
            stroke-width: 1.7;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

    .erp-brand-name {
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        letter-spacing: -.01em;
        line-height: 1.2;
    }


