﻿body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: white;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.main-container {
    display: flex;
    min-height: 100vh;
}

/* =========================================
   LEFT SIDE
========================================= */

.left {
    width: 60%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.logo {
    width: 180px;
    margin-bottom: 20px;
}

.title {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.4;
}

.erp-image {
    width: 70%;
    max-width: 500px;
    object-fit: contain;
}

.footer-text {
    margin-top: 30px;
    font-size: 12px;
    color: #888;
}

/* =========================================
   RIGHT SIDE
========================================= */

.right {
    width: 40%;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-box {
    width: 100%;
    max-width: 360px;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #000;
}

.login-sub {
    font-size: 13px;
    color: #888;
    margin-bottom: 25px;
}

.form-label {
    font-size: 12px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
}

/* =========================================
   INPUTS
========================================= */

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    outline: none;
    transition: 0.2s ease;
    margin-bottom: 18px;
}

    .form-control:focus {
        border-color: #ff4d4d;
        box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.08);
    }

/* =========================================
   PASSWORD INPUT
========================================= */

.password-wrapper {
    position: relative; /* ✅ this must be here */
    width: 100%;
    margin-bottom: 18px;
}

.toggle-password {
    position: absolute; /* ✅ positions inside the wrapper */
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

    .password-wrapper .form-control.password-input {
        width: 100%;
        padding-right: 45px !important;
        margin-bottom: 0 !important;
    }

    .password-wrapper .toggle-password {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        cursor: pointer;
        color: #555;
        font-size: 18px;
        z-index: 1000;
    }

        .password-wrapper .toggle-password i {
            line-height: 1;
        }

        .password-wrapper .toggle-password:hover {
            color: #000;
        }


/* =========================================
   BUTTON
========================================= */

.btn-submit {
    width: 120px;
    padding: 11px;
    background-color: #ff4d4d;
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s ease;
}

    .btn-submit:hover {
        background-color: #e60000;
        transform: translateY(-1px);
    }

/* =========================================
   WELCOME BOX
========================================= */

.welcome-user {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.welcome-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.welcome-email {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}

/* =========================================
   SWITCH ACCOUNT
========================================= */

.switch-account {
    margin-top: 20px;
}

    .switch-account a {
        text-decoration: none;
        color: #ff4d4d;
        font-size: 13px;
        transition: 0.2s ease;
    }

        .switch-account a:hover {
            text-decoration: underline;
        }

/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .left {
        width: 55%;
        padding: 30px;
    }

    .right {
        width: 45%;
        padding: 30px;
    }

    .title {
        font-size: 28px;
    }

    .erp-image {
        width: 85%;
    }

    .logo {
        width: 160px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    body {
        overflow-y: auto;
    }

    .main-container {
        flex-direction: column;
        min-height: auto;
    }

    .left {
        width: 100%;
        padding: 30px 20px;
        order: 1;
    }

    .right {
        width: 100%;
        padding: 40px 20px;
        order: 2;
        background: white;
    }

    .logo {
        width: 140px;
    }

    .title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .erp-image {
        width: 90%;
        max-width: 320px;
    }

    .footer-text {
        font-size: 11px;
        margin-top: 20px;
        text-align: center;
    }

    .login-box {
        width: 100%;
        max-width: 350px;
    }

    .login-title {
        font-size: 22px;
    }

    .login-sub {
        font-size: 12px;
    }

    .form-control {
        padding: 12px;
        font-size: 14px;
    }

    .btn-submit {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    .welcome-user {
        text-align: center;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .left {
        padding: 25px 15px;
    }

    .right {
        padding: 30px 15px;
    }

    .logo {
        width: 120px;
    }

    .title {
        font-size: 20px;
        line-height: 1.4;
    }

    .erp-image {
        width: 95%;
        max-width: 260px;
    }

    .login-box {
        max-width: 100%;
    }

    .login-title {
        font-size: 20px;
    }

    .btn-submit {
        font-size: 13px;
    }

    .welcome-name {
        font-size: 16px;
    }

    .welcome-email {
        font-size: 12px;
    }
}
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
.password-input::-ms-reveal,
.password-input::-ms-clear {
    display: none;
}
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-textfield-decoration-container {
    display: none !important;
}