﻿/* Form container */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

/** {
    box-sizing: border-box;
}*/
body {
    margin: 0;
    padding: 0;
    background-image: url('bag-login-screen-assets/PEMBG.png'); /* Replace 'your-image.jpg' with your image path */

    background-position: center;
    /* font: 12.5px/20px PTSansRegular,Arial,Helvetica,sans-serif;*/
    /* height: 100vh;*/

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #63885D; /* fallback color */
}

/* Container styles */
.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-side {
    background-color: #507d2a;
    color: white;
    position: relative;
}
/* Right side content */
.right-side {
    width: 300px; /* Adjust width as needed */
    padding: 20px;
    border-radius: 5px;
}

.welcome-message {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 15px;
}
/* Form group (label + input) */
/*.form-group {
        margin-bottom: 16px;
        position: relative;
    }*/

/* Label */
/*.form-group label {
        position: absolute;
        top: -10px;
        left: 10px;
        background-color: #fff;
        padding: 0 5px;
    }*/

/* Input field */
/*.form-control {
    width: 100%;
    padding: 11px;
    border: 1px solid #507d2a;
    border-radius: 5px;
    padding-left:40px;
}*/

.forgot-password-container {
    display: flex;
    justify-content: right;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-bottom: 10px;
    text-decoration: none;
    color: #7a7575;
    font-weight: 700;
}


/* Login button */
.login-button, .pay-bill-button, .create-account-button {
    background-color: #507d2a;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    text-wrap: wrap;
    display: block;
    border: #507d2a 1px solid;
}

    .login-button:hover, .pay-bill-button:hover, .create-account-button:hover {
        background-color: white;
        color: #0094F8;
        border: #0094F8 1px solid;
    }

.login-button {
    width: 35%;
}

.pay-bill-button, .create-account-button {
    width: 100%;
}


.create-account-container, .pay-bill-container {
    width: 48%;
    text-align: center;
    min-width: fit-content;
}

.create-account-container {
    margin-right: 10px;
}

.learnMore-button {
    color: #0094F8;
    background-color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: block;
}
/* OR label */
.or-label {
    text-align: center;
    margin: 20px 0;
    margin-bottom: 12px;
}

.word-container {
    display: flex;
    align-items: center;
    width: 60% !important;
}

.word {
    padding: 0 6px;
}

.line {
    flex: 1;
    height: 1px;
    background-color: #a59a9a;
}

.login-button, .pay-bill-button, .create-account-button, .learnMore-button {
    font-size: 13.5px;
    text-align: center;
    width: 160px;
    padding: 10px;
}
/* Activate account button */
.activate-account-button {
    margin-top: 10px;
}

.createAcc-payBill-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
/* Left side styles */
.left-side {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    /* Left side header styles */
    .left-side header {
        padding: 20px 20px;
        border-radius: 25px 0 0 0; /* Apply border-radius to top-left corner only */
        padding-left: 53px;
    }

    /* Left side main content styles */
    .left-side main {
        width: 75%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: auto;
        padding: 00px;
        font-size: 16.5px;
    }

.Logo-container {
    margin: 20px 0;
}
/* Left side footer styles */
.left-side footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
    border-radius: 0 0 0 25px;
    font-size: 10.1px;
}

.footer-links {
    color: white;
    text-decoration: none;
    margin: 0 4px;
}

.right-side-content-wrapper {
    width: 80%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
}

    .right-side-content-wrapper > .content {
        width: 100%;
    }
/* Card styles */
.card {
    max-width: 900px;
    width: 70%; /* Default width for big screens */
    border-radius: 25px;
    border: 2px solid #507d2a;
    display: flex;
}

/* Right side styles */
.right-side {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.9); /* Transparent background */
    border-radius: 0 25px 25px 0; /* Apply border-radius to right side only */
}

/* Left side styles */
.left-side {
    flex: 1;
    background-color: #507d2a;
    border-radius: 21px 0 0 21px;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
}

.logo-img {
    max-width: 100%;
    height: auto;
}


#lblPassword, #lblUsername {
    position: absolute;
    top: -10px;
    left: 8px;
    background-color: white;
    color: #507d2a;
    padding: 0 5px;
}

.form-group > input {
    /*  border:none;*/
}

.username-icon, .password-icon {
    position: absolute;
    top: 40% !important;
    left: 10px;
    transform: translateY(-50%);
}


.input-wrapper input:focus {
    border: 2px solid red;
}

.login-paybill-label {
    color: #7a7575;
    font-weight: 600;
}

.logo {
    display: none;
}

.password-toggle {
    position: absolute;
    top: 36%;
    right: 20px;
    transform: translateY(-50%);
    cursor: pointer;
    color: gray;
}

.login-btn-container {
    display: flex;
    justify-content: center;
}

/* Start FOR PEM LOGIN*/
.pem-center {
    /* absolute center within pem-bg so the card is centered in the viewport regardless of other flow elements (footer) */
    /*   position: absolute;*/
    /*top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;*/ /* center based on content size */
    /*padding: 0 16px;
    box-sizing: border-box;
    z-index: 2;*/ /* place above footer/background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.pem-card {
    width: 550px; /* decreased card width */
    max-width: 94%;
    padding: 40px 44px; /* add top padding to create space from top of viewport */
    margin: 0 auto; /* ensure horizontal centering */
    /* margin: auto 0;  ensure horizontal centering */
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    height: auto;
}

.pem-card-inner {
    background: #fff;
    padding: 25px 48px; /* increased padding for larger card */
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
    text-align: center;
    height: auto;
}

.pem-logo img {
    width: 300px;
    margin: -20px 0 8px;
}

.pem-welcome {
    margin: 0px 0 4px;
    font-size: 20px;
    letter-spacing: 1px;
    color: #434341;
    font-family: 'Montserrat','Source Sans Pro', sans-serif; /* updated font */
    font-size: 18px;
}

.pem-sub {
    color: #8b8b8b;
    font-size: 14px;
    margin-bottom: 12px;
    font-family: 'Source Sans 3','Source Sans 3'; /* updated font */
}

.pem-label {
    display: block;
    text-align: left;
    font-size: 11px;
    color: #434341; /* updated color */
    margin-top: 10px;
    margin-bottom: 6px;
    font-weight: 600;
    font-family: 'Montserrat','Source Sans Pro', sans-serif; /* updated font */
}

.pem-label2 {
    display: block;
    text-align: left;
    /*font-size: 11px;
    color: #434341;*/ /* updated color */
    margin-top: 10px;
    margin-bottom: 6px;
    font-weight: 600;
    font-family: 'Montserrat','Source Sans Pro', sans-serif; /* updated font */
}

.pem-field {
    margin-bottom: 8px;
    position: relative;
}

.pem-input {
    width: 100%;
    height: 42px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    box-sizing: border-box;
    background: #fafafa;
    font-family: 'Montserrat','Source Sans Pro', sans-serif;
}

    .pem-input.with-icon {
        padding-left: 52px;
        color: #434341; /* updated color */
        font-family: 'Montserrat','Source Sans Pro', sans-serif; /* updated font */
    }

    .pem-input.with-eye {
        padding-right: 52px;
        color: #434341; /* updated color */
        font-family: 'Montserrat','Source Sans Pro', sans-serif; /* updated font */
    }

.input-icon .pem-field-icon,
.input-icon .pem-eye {
    font-size: 20px;
    padding-bottom: 15px;
}

.pem-row-options {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #6f6f6f;
    font-family: 'Montserrat','Source Sans Pro', sans-serif;
}

.pem-forgot {
    color: #6b8a67;
    text-decoration: none;
    font-weight: 600;
    margin-left: auto; /* push to right side of the row */
    font-family: 'Montserrat','Source Sans Pro', sans-serif;
}

.pem-createaccount {
    /*color: #6b8a67;
    text-decoration: none;
    font-weight: 600;
    margin-right: auto;
    font-family: 'Montserrat','Source Sans Pro', sans-serif;*/

    background: #72976B;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    text-wrap: wrap;
    display: block;
    border: #72976B 1px solid;
    text-align: center;
    width: 160px;
    padding: 10px;
    font-weight: 600;
    margin-right: auto;
    text-decoration: none;
    font-family: 'Montserrat','Source Sans Pro', sans-serif;
}

.pem-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #72976B;
    border: #507d2a 1px solid;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 20px;
    cursor: pointer;
    font-family: 'Montserrat','Source Sans Pro', sans-serif;
}

    .pem-button:hover, .pem-createaccount:hover {
        background: #5d855b;
    }

.pem-note {
    margin-top: 14px;
    color: #8b8b8b;
    font-size: 12px;
    font-family: 'Montserrat','Source Sans Pro', sans-serif; /* updated font */
    margin-top: 20px;
}

    .pem-note a {
        color: #527a53;
        font-weight: 700;
        text-decoration: none;
        font-family: 'Montserrat','Source Sans Pro', sans-serif; /* updated font */
    }

.pem-footer {
    text-align: center;
    font-size: 11px;
    color: White;
    margin-top: 36px;
    opacity: 0.85;
    position: fixed; /* pin to bottom of browser */
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 14px 0;
    background: transparent;
    font-family: 'Source Sans 3','Source Sans Pro', sans-serif; /* updated font */
}

.pem-validation {
    display: block;
    text-align: left;
    font-size: 15px; /* match input font size */
    color: #d9534f; /* validation red */
    margin-top: 1px;
    margin-bottom: 0;
    /* align validation text with input text start when left icon is present */
    margin-left: 42px;
    box-sizing: border-box;
    font-weight: 400;
    font-family: 'Montserrat','Source Sans Pro', sans-serif;
}

/*@media (max-width:480px) {
    .pem-card-inner {
        padding: 20px 18px;
    }

    .pem-logo img {
        width: 180px;
    }
}*/

.pem-link-options {
    display: flex;
    margin-top: 20px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #6f6f6f;
    font-family: 'Montserrat','Source Sans Pro', sans-serif;
    justify-content: space-between;
    width: 100%;
}

.pem-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.pem-item {
    display: flex;
    flex-direction: column; /* puts label above link */
}

.pem-label {
    margin-bottom: 5px;
}

.pem-footer {
    text-align: center;
    color: White;
    font-family: 'Source Sans 3';
    letter-spacing: 2px;
}

.pem-footer-links {
    display: block; /* puts links on new line */
    color: White;
    margin-top: 5px;
}

    .pem-footer-links a {
        color: White;
        text-decoration: none;
        margin: 0 10px;
        font-weight: 600;
    }

.pem-footer-label {
    padding-left: 45px;
}

.pem-footer-paybill-label {
    padding-left: 65px;
}

@media (max-height: 700px) {

    .pem-bg {
        min-height: auto !important;
        height: auto !important;
    }

    .pem-center {
        display: flex;
        align-items: flex-start !important;
        justify-content: center;
        padding-top: 20px;
    }

    .pem-footer-top {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        bottom: -9999px !important;
    }
}


/* End FOR PEM LOGIN*/

@media only screen and (max-width: 1200px) {
    .card {
        width: 90%;
    }

    .left-side header {
        padding-left: 42px;
    }

    .left-side main {
        padding: 0;
    }

    .createAcc-payBill-container {
        /*margin-left:-66px;*/
    }

    .login-button, .pay-bill-button, .create-account-button, .learnMore-button {
        width: 145px;
    }
    /* for PEM*/
    .pem-button, .pay-bill-button, .pem-createaccount {
        width: 100% !important;
    }

    .pem-button {
        display: block;
        margin: 0 auto; /* centers horizontally */
    }

    .pem-footer {
       /* display: none;*/
    }

    @media only screen and (max-width: 1010px) {

        .login-button, .pay-bill-button, .create-account-button {
        }
        /* for PEM*/
        .pem-button {
            display: block;
            margin: 0 auto; /* centers horizontally */
            width:100% !important;
        }

        .pem-footer {
            display: none;
        }
    }

    /* For tablet screens */
    @media only screen and (max-width: 768px) {

        .card {
            max-width: 400px;
            width: 85%;
        }


        .left-side {
            display: none;
        }

        .right-side {
            border-radius: 23px;
            width: 100%;
            padding: 0;
        }

        .right-side-content-wrapper {
            width: 75%;
            overflow-wrap: anywhere;
        }

        .logo {
            display: block;
            margin: 20px 0; /* Adjust as needed */
        }

            .logo img {
                max-width: 100%; /* Ensures the logo doesn't exceed its container */
                height: auto;
            }

        .createAcc-payBill-container {
            flex-direction: column;
        }

        .create-account-container, .pay-bill-container {
            margin-bottom: 20px;
            width: 100%;
        }

        .login-button, .pay-bill-button, .create-account-button {
            width: 100%;
            padding: 10px 5px;
            text-wrap: wrap;
        }
        /* for PEM*/
        .pem-button {
            width: 100% !important;
            max-width: 280px !important;
            margin: 0 auto !important;
            display: block !important;
            text-align: center;
        }

        .pem-createaccount {
            width: 100% !important;
            max-width: 260px !important;
            margin: 0 auto !important;
            display: block !important;
            text-align: center;
        }

        .pem-label2,
        .pem-footer-label,
        .pem-footer-paybill-label {
            text-align: center;
            padding-left: 0; /* remove your old offset */
            width: 100%;
        }

        .pem-link-options {
            display: flex;
            flex-direction: column;
            align-items: center; /* force center alignment */
            gap: 18px;
        }

        .pem-item {
            width: 100%;
            align-items: center;
        }

        .pem-footer {
            display: none;
        }
    }
}
