html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.has-error .form-control, .has-error .input-group-addon, .has-error .input-group-text, .has-error .form-control:focus {
    border-color: #e74c3c !important;
}
.has-error .input-group-addon, .has-error .help-block {
    color: #e74c3c !important;
}
.has-error .input-group .btn.btn-light {
    border: 1px solid #e74c3c!important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.erp-login-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    background:
            linear-gradient(
                    90deg,
                    #0b3c46 0%,
                    #155f6e 30%,
                    #1f7f91 55%,
                    #dfe4e9 85%,
                    #f3f5f8 100%
            );
}

.erp-login-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    90deg,
                    rgba(0,0,0,0.35) 0%,
                    rgba(0,0,0,0.2) 12%,
                    rgba(0,0,0,0.08) 22%,
                    transparent 40%
            );
    pointer-events: none;
}

.erp-login-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;

    background: url('../img/network-pattern.svg');
    background-size: 720px;      /* slightly larger = more elegant */
    background-repeat: repeat;

    opacity: 0.38;               /* increased subtly */

    mask-image: linear-gradient(
            90deg,
            black 0%,
            black 65%,               /* extend visibility */
            transparent 90%
    );
    -webkit-mask-image: linear-gradient(
            90deg,
            black 0%,
            black 65%,
            transparent 90%
    );

    pointer-events: none;
}

/* LEFT SIDE */
.brand-side {
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    isolation: isolate;
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.brand-logo {
    display: block;
    margin: 0 auto 40px auto;   /* centers horizontally */
    width: 150px;
    margin-bottom: 30px;
}

.brand-content h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
}

.brand-sub {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
}

/* RIGHT SIDE */
.login-side {
    width: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Stronger polygon effect */
.login-side::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
            radial-gradient(circle at 65% 40%,
            rgba(255,255,255,0.8),
            transparent 60%
            ),
            url('../img/polygon-pattern.svg');

    background-repeat: no-repeat, repeat;
    background-size: cover, 650px;
    opacity: 0.25;
}

.login-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/polygon-pattern.svg');
    background-size: cover;
    opacity: 0.25;
}

/* CARD */
.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 60px;
    border-radius: 22px;
    box-shadow: 0 40px 120px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

/* BOOTSTRAP INPUT OVERRIDE */
.login-card .form-control {
    width: 100%;
    max-width: 100%;
    display: block;
    height: 50px;
    border-radius: 14px;
    border: 1px solid #e3e8ef;
    padding: 0 20px;
    font-size: 15px;
    background: #ffffff;
    color: #1a1a1a;
}

.login-card .form-control:focus {
    border-color: #1ba6c9;
    box-shadow: 0 0 0 4px rgba(27,166,201,0.12);
}

.login-card .form-control::placeholder {
    color: #6b7280;
    opacity: 1;
}

/* Ensure form takes full width */
.login-card form {
    width: 100%;
}

/* Ensure form-group takes full width */
.login-card .form-group {
    width: 100%;
}

/* LOGIN BUTTON */
.login-card .btn-primary {
    width: 100%;
    height: 40px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(90deg, #f77f00 0%, #ff9f1c 100%);
    color: #ffffff !important;   /* force white text */
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

/* HOVER EFFECT */
.login-card .btn-primary:hover {
    background: linear-gradient(90deg, #e46f00 0%, #ff8c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(247,127,0,0.35);
    color: #ffffff !important;
}

/* ACTIVE (CLICK) EFFECT */
.login-card .btn-primary:active {
    transform: translateY(0px);
    box-shadow: 0 6px 15px rgba(247,127,0,0.25);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.login-options .remember-wrapper {
    margin: 0;
    font-size: 14px;
}

.login-options a {
    color: #000000;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-options a:hover {
    text-decoration: underline;
    color: #0f4c5c;
}
.brand-side,
.login-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 80px;
    position: relative;
    background: transparent!important;
    min-height: 100vh;
}
h4.login-title {
    margin-top: 0;
}
.brand-features {
    list-style: none;      /* removes default bullet */
    padding-left: 0;       /* removes indentation */
    margin: 0;
}

.brand-features li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: 600;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand-features li:hover {
    transform: translateX(6px);
}

.brand-features li:hover::before {
    transform: scale(1.15);
    opacity: 1;
}

.pwd-reset-form {
    margin-top: 15px!important;
}

/***************INPUT FIELD ICON**************/
/* FIELD WRAPPER */
.erp-field {
    position: relative;
    margin-bottom: 20px;
}

/* ICON */
.erp-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #7b8a99;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.2s ease;
}

/* INPUT */
.erp-input {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: 1px solid #e3e8ef;
    padding-left: 40px!important;   /* space for icon */
    font-size: 15px;
    background: #f9fbfd;
    transition: all 0.25s ease;
}

.erp-input:focus {
    border-color: #1ba6c9;
    box-shadow: 0 0 0 4px rgba(27,166,201,0.12);
}

/* Icon changes color on focus */
.erp-field:focus-within .erp-icon {
    color: #1ba6c9;
}
/*************END INPUT FIELD ICON*************/

/* ============================= */
/* TABLET RESPONSIVE */
/* ============================= */
@media (max-width: 1024px) {

    .erp-login-wrapper {
        flex-direction: column;
    }

    .brand-side,
    .login-side {
        width: 100%;
        padding: 60px 40px;
        text-align: center;
    }

    .brand-content {
        max-width: 100%;
    }

    .brand-logo {
        width: 120px;
    }

    .brand-content h1 {
        font-size: 42px;
    }

    .login-card {
        margin-top: 40px;
    }
}

/* ============================= */
/* MOBILE RESPONSIVE */
/* ============================= */
@media (max-width: 600px) {
    html,
    body {
        height: auto;
        min-height: 100%;
    }

    .erp-login-wrapper {
        min-height: 100vh;
        min-height: 100dvh;
        justify-content: flex-start;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .brand-sub,
    .brand-features {
        display: none;
    }

    .brand-side {
        min-height: auto;
        padding: 24px 20px 8px 20px;
    }

    .brand-logo {
        width: 72px;
        margin-bottom: 10px;
    }

    .brand-content h1 {
        font-size: 24px;
        margin-bottom: 0;
    }

    .login-side {
        min-height: auto;
        padding: 8px 16px 24px;
    }

    .login-card {
        max-width: 100%;
        margin-top: 0;
        padding: 24px 20px;
        border-radius: 16px;
    }
}


