﻿* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    overflow: hidden;
}


/* =========================================
   MAIN LOGIN PAGE
========================================= */

.login-page {
    width: 100%;
    height: 100vh;
    display: flex;
    background: #f5f7f8;
}


/* =========================================
   LEFT BACKGROUND
========================================= */

.login-background {
    width: 52%;
    height: 100vh;
    position: relative;
    background-image: url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1600&q=85");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}


.background-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( 135deg, rgba(10, 67, 52, 0.92), rgba(19, 111, 78, 0.72), rgba(255, 255, 255, 0.05) );
}


.background-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 12%;
    padding-right: 15%;
}


.brand-message {
    max-width: 540px;
    color: white;
}


.message-small {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 20px;
    opacity: 0.9;
}


.brand-message h1 {
    margin: 0;
    font-size: 52px;
    line-height: 1.12;
    font-weight: 700;
}


    .brand-message h1 span {
        display: block;
        color: #9ce36f;
    }


.message-line {
    width: 70px;
    height: 4px;
    background: #8ed66b;
    margin: 28px 0;
}


.brand-message p {
    margin: 0;
    font-size: 15px;
    letter-spacing: 1px;
    opacity: 0.9;
}


/* =========================================
   RIGHT LOGIN AREA
========================================= */

.login-section {
    width: 48%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: radial-gradient( circle at top right, #edf8ef, #ffffff 55% );
}


/* =========================================
   LOGIN CARD
========================================= */

.login-card {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 26px;
    padding: 42px 48px 32px;
    box-shadow: 0 20px 60px rgba(20, 60, 45, 0.14);
    border: 1px solid rgba(20, 90, 60, 0.08);
}


/* =========================================
   LOGO
========================================= */

.logo-section {
    text-align: center;
    margin-bottom: 12px;
}


.login-logo {
    max-width: 190px;
    max-height: 90px;
    object-fit: contain;
}


/* =========================================
   WELCOME
========================================= */

.welcome-section {
    text-align: center;
    margin-bottom: 30px;
}


    .welcome-section h2 {
        margin: 0 0 7px;
        color: #233f7b;
        font-size: 31px;
        font-weight: 700;
    }


    .welcome-section p {
        margin: 0;
        color: #7a8089;
        font-size: 15px;
    }


/* =========================================
   FORM
========================================= */

.login-form {
    width: 100%;
}


.input-group-custom {
    margin-bottom: 21px;
}


    .input-group-custom label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 600;
        color: #39434e;
    }


        .input-group-custom label i {
            color: #244681;
            margin-right: 6px;
            width: 15px;
        }


/* =========================================
   INPUT
========================================= */

.input-wrapper {
    position: relative;
    width: 100%;
}


.custom-input {
    width: 100% !important;
    height: 50px !important;
    border-radius: 15px !important;
    border: 1px solid #d8e0e8 !important;
    background: #f5f8fc !important;
    padding: 0 45px !important;
    font-size: 14px;
    color: #303942;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.25s ease;
}


    .custom-input:focus {
        border-color: #1c805e !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 4px rgba(28, 128, 94, 0.08) !important;
    }


    .custom-input::placeholder {
        color: #a8b0b9;
    }


.input-icon {
    position: absolute;
    left: 17px;
    top: 17px;
    color: #6c7783;
    z-index: 5;
    font-size: 16px;
}


/* =========================================
   COMPANY SELECT
========================================= */

.company-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-left: 45px !important;
    padding-right: 40px !important;
}


.select-arrow {
    position: absolute;
    right: 17px;
    top: 18px;
    color: #334d72;
    pointer-events: none;
}


/* =========================================
   PASSWORD
========================================= */

.hidden-password {
    display: none;
}


.password-input {
    padding-right: 55px !important;
}


.password-toggle {
    position: absolute;
    right: 12px;
    top: 9px;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #77808a;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
}


    .password-toggle:hover {
        color: #1c805e;
    }


/* =========================================
   VALIDATION
========================================= */

.validation-message {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}


.validation-summary-errors {
    color: #dc3545;
    font-size: 13px;
    margin-bottom: 15px;
}


/* =========================================
   REMEMBER / FORGOT
========================================= */

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0 22px;
    font-size: 13px;
}


.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    color: #66707b;
}


    .remember-me input {
        width: 16px;
        height: 16px;
        accent-color: #1c805e;
    }


.forgot-password a {
    color: #16805c;
    text-decoration: none;
    font-weight: 600;
}


    .forgot-password a:hover {
        text-decoration: underline;
    }


/* =========================================
   LOGIN BUTTON
========================================= */

.login-button-wrapper {
    width: 100%;
    margin-top: 5px;
}


.login-button {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 15px;
    background: linear-gradient( 135deg, #126d50, #219b70 );
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(20, 120, 85, 0.22);
}


    .login-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(20, 120, 85, 0.30);
    }


    .login-button:active {
        transform: translateY(0);
    }


.button-arrow {
    font-size: 23px;
    margin-left: 10px;
    vertical-align: -2px;
}


/* =========================================
   SSO
========================================= */

.sso-section {
    margin-top: 15px;
    text-align: center;
}


/* =========================================
   HELP
========================================= */

.login-help {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #edf0f2;
    color: #858c94;
    font-size: 13px;
}


    .login-help a {
        color: #147a59;
        font-weight: 600;
        text-decoration: none;
        margin-left: 4px;
    }


/* =========================================
   JOB SEEKER
========================================= */

.jobseeker-section {
    display: flex;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #edf0f2;
    font-size: 13px;
}


    .jobseeker-section a {
        color: #244681;
        text-decoration: none;
    }


        .jobseeker-section a:hover {
            color: #16805c;
            text-decoration: underline;
        }


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .login-background {
        width: 45%;
    }

    .login-section {
        width: 55%;
    }

    .brand-message h1 {
        font-size: 42px;
    }

    .login-card {
        max-width: 460px;
        padding: 35px 38px 28px;
    }
}


@media (max-width: 768px) {

    body {
        overflow: auto;
    }

    .login-page {
        height: auto;
        min-height: 100vh;
        display: block;
    }

    .login-background {
        display: none;
    }

    .login-section {
        width: 100%;
        min-height: 100vh;
        padding: 20px;
    }

    .login-card {
        max-width: 500px;
        padding: 32px 25px;
    }

    .welcome-section h2 {
        font-size: 27px;
    }

    .login-logo {
        max-width: 170px;
    }
}


@media (max-width: 450px) {

    .login-section {
        padding: 12px;
    }

    .login-card {
        border-radius: 20px;
        padding: 28px 20px;
    }

    .login-options {
        font-size: 12px;
    }

    .jobseeker-section {
        font-size: 12px;
    }
}

/* =========================================
   PASSWORD FIELD - FIXED
========================================= */

.password-field-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 50px !important;
    display: block !important;
}


    /* Password input */

    .password-field-wrapper input.login-password-input,
    #USERPASSWORD {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 50px !important;
        min-width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 52px 0 45px !important;
        border: 1px solid #d8e0e8 !important;
        border-radius: 15px !important;
        background: #f5f8fc !important;
        color: #303942 !important;
        font-family: "Segoe UI", Arial, sans-serif !important;
        font-size: 15px !important;
        line-height: 50px !important;
        outline: none !important;
        box-shadow: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        transition: all 0.25s ease !important;
    }


        .password-field-wrapper input.login-password-input:focus,
        #USERPASSWORD:focus {
            border-color: #1c805e !important;
            background: #ffffff !important;
            box-shadow: 0 0 0 4px rgba(28, 128, 94, 0.08) !important;
        }


/* Left lock icon */

.password-left-icon {
    position: absolute !important;
    left: 17px !important;
    top: 17px !important;
    z-index: 20 !important;
    color: #244681 !important;
    font-size: 16px !important;
    pointer-events: none !important;
}


/* Eye button */

.password-eye-button {
    position: absolute !important;
    right: 10px !important;
    top: 8px !important;
    width: 35px !important;
    height: 35px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    color: #6f7b86 !important;
    cursor: pointer !important;
    z-index: 30 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


    .password-eye-button i {
        font-size: 17px !important;
        color: #6f7b86 !important;
        line-height: 1 !important;
    }


    .password-eye-button:hover i {
        color: #16805c !important;
    }


/* Browser autofill */

#USERPASSWORD:-webkit-autofill,
#USERPASSWORD:-webkit-autofill:hover,
#USERPASSWORD:-webkit-autofill:focus {
    -webkit-text-fill-color: #303942 !important;
    -webkit-box-shadow: 0 0 0 1000px #f5f8fc inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}