
:root {
    --primary: #1e3a8a;
    --primary-dark: #172554;
    --light: #f8f9fa;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
}

/* Left branding panel */
.branding-side {
    background: linear-gradient(145deg, #1e3a8a 0%, #172554 100%);
    color: #fff;
    flex: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.branding-side::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    top: -180px;
    right: -160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.branding-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Company logo and name */
.brand-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 15px;
    margin-bottom: 10px;
}

.company-logo {
    width: 95px;
    height: 75px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border-radius: 10px;
    padding: 7px;
}

.brand-name h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.brand-name span {
    display: block;
    margin-top: 5px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.brand-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    margin-bottom: 10px;
}

/* Main headline */
.brand-intro {
    text-align: center;
}

.brand-label {
    display: inline-block;
    color: #bfdbfe;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.3px;
    margin-bottom: 5px;
}

.brand-intro h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 5px;
}

.brand-intro h1 span {
    display: block;
    color: #93c5fd;
}

.brand-intro p {
    color: #dbeafe;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

/* ERP features */
.erp-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 13px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 0.83rem;
    color: #fff;
    text-align: left;
    transition: background 0.2s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.13);
}

.feature-item i {
    color: #93c5fd;
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* Security footer */
.brand-footer {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
}

.brand-footer > i {
    flex-shrink: 0;
    font-size: 1.4rem;
    color: #93c5fd;
    margin-top: 2px;
}

.brand-footer > div {
    flex: 1;
    text-align: center;
}

.brand-footer strong {
    display: block;
    font-size: 0.85rem;
    line-height: 1;
    text-align: center;
}

.brand-footer p {
    margin: 5px 0 0;
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1;
    text-align: center;
}

/* Right login panel */
.login-side {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.login-card h3 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Input styling */
.input-group-text {
    background: var(--light);
    color: var(--primary);
    min-width: 45px;
    justify-content: center;
}

.form-control {
    padding: 0.75rem;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.15);
    z-index: 3;
}

/* Password toggle button */
.password-toggle {
    background: var(--light);
    color: #495057;
    border-color: #ced4da;
}

.password-toggle:hover {
    background: #e9ecef;
    color: var(--primary);
}

.password-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
}

/* Login button */
.btn-primary {
    background: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
}

.footer-text {
    font-size: 0.8rem;
}

/* Responsive layout */
@media (max-width: 992px) {
    .login-wrapper {
        flex-direction: column;
    }

    .branding-side {
        flex: none;
        min-height: auto;
        padding: 2.5rem 1.5rem;
    }

    .branding-content {
        max-width: 600px;
    }

    .branding-content .logo {
        font-size: 2.5rem;
    }

    .branding-content .tagline {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .login-side {
        min-height: 70vh;
        padding: 2rem 1rem;
    }

    .login-card {
        max-width: 450px;
        padding: 2rem;
    }

    .brand-intro h1 {
        font-size: 1.6rem;
    }

    .brand-intro p {
        margin-bottom: 20px;
    }

    .brand-divider {
        margin-bottom: 22px;
    }

    .erp-features {
        gap: 10px;
        margin-bottom: 20px;
    }

    .feature-item {
        padding: 11px 9px;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .branding-side {
        min-height: 25vh;
        padding: 1.5rem 1rem;
    }

    .branding-content .logo {
        font-size: 2rem;
    }

    .login-side {
        padding: 1.25rem 0.75rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .company-logo {
        width: 54px;
        height: 54px;
    }

    .brand-name h2 {
        font-size: 1.5rem;
    }

    .brand-intro h1 {
        font-size: 1.7rem;
    }

    .brand-label {
        font-size: 0.65rem;
        letter-spacing: 0.8px;
    }

    .erp-features {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 10px 12px;
    }

    .brand-footer {
        padding: 14px;
    }
}
