﻿/* ============================================================
   1. RESET (Modern, Minimal, Safe)
   ============================================================ */

html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

img, picture, video, canvas {
    max-width: 100%;
    display: block;
}

button, input, select, textarea {
    font: inherit;
}

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}



/* ============================================================
   2. CORE (Typography, Colors, Focus, Body Defaults)
   ============================================================ */
body {
    font-family: "Aptos", sans-serif;
    font-size: 12pt;
    color: #1B1B1B;
    background-color: #FFFFFF;
    line-height: 1.5;
}

/* Page headers */
.le-h1 {
    font-size: 24px;
    font-weight: bold;
    color: #054C77;
}

/* Subheaders */
.le-h2 {
    font-size: 19px;
    font-weight: bold;
    color: #1B1B1B;
    margin-bottom: 0.5em;
}

.le-h3 {
    font-size: 19px;
    color: #1B1B1B;
    margin-bottom: 0.5em;
    font-weight: 400;
}

.le-h4 {
    font-size: 20px;
    font-weight: bold;
    color: white;
    background-color: #054C77;
    padding: .5em 1em;
}

.le-subheader {
    font-size: 16px;
    color: #FFFFFF;
    background-color: #054C77;
    padding: .5em 1em;
}

.le-h5 {
    font-size: 19px;
    color: #1B1B1B;
    margin-bottom: 0.5em;
    font-weight: 400;
}

.le-h6 {
    font-size: 19px;
    color: #1B1B1B;
}

/* Standard text */
.le-text {
    font-size: 16px;
    color: #1B1B1B;
}

.le-subheader {
    font-size: 16px;
    color: #FFFFFF;
}

.le-text-white {
    font-size: 13px;
    color: #FFFFFF;
}
/* Validation text */
.le-validation-text {
    font-size: 16px;
    font-weight: bold;
    color: #C00000;
}

/* Global focus indicator */
:focus-visible {
    outline: 3px solid #A02381 !important;
    outline-offset: 0px;
}


/* ============================================================
   3. COMPONENTS (Buttons, Inputs, Labels, Alerts, Banners)
   ============================================================ */

/* Labels */
.le-label {
    font-size: 16px;
    font-weight: bold;
    color: #1B1B1B;
    display: block;
    margin-bottom: 4px;
}


/* Inputs */
.le-input {
    font-size: 14px;
    color: #1B1B1B;
    border: 1px solid #1B1B1B;
    border-radius: 4px;
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
    max-width: 400px;
    height: 40px;
}

.le-input--success {
    border: 2px solid #00A91C !important;
    background-color: #ECF3EC !important;
}

#login #boxlength .le-input {
    max-width: 350px;
}

.password-row .toggle-password img {
    margin-top: 2px;
}

/* Buttons */
.le-btn {
    font-size: 14px;
    font-weight: bold;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 8px 40px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Primary */
.le-btn--primary {
    background-color: #054C77;
}

    .le-btn--primary:hover {
        background-color: #043d61;
    }

/* Secondary */
.le-btn--secondary {
    background-color: #FFFFFF;
    color: #054C77;
    border: 1px solid #054C77;
}

    .le-btn--secondary:hover {
        background-color: #F2F8FC;
    }


/* Create Account */
.le-btn--create-account {
    background-color: #057738;
    width: 100%;
    display: block;
    text-align: center;
}

    .le-btn--create-account:hover {
        background-color: #046530;
    }

@media screen and (max-width: 600px) {
    .le-btn--create-account {
        width: auto;
        display: inline-flex; /* matches your button component style */
        padding-left: 20px;
        padding-right: 20px;
    }
}

.le-btn--login {
    width: 100%;
    max-width: 400px; /* allows shrinking on smaller screens */
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 8px;
}


    .le-btn--login:hover {
        background-color: #043d61;
    }

/* Alerts */
.le-alert {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.le-alert--success {
    background-color: #E7F6E7;
    border: 1px solid #2E7D32;
    color: #1B5E20;
    max-width: 400px; 
    padding: 12px;
    border-radius: 4px; 
}

.le-logout--success {
    background-color: #ECF3EC;
    border: 2px solid #00A91C;
    max-width: 400px;
    padding: 12px;
    border-radius: 2px;
}
.le-alert--error {
    background-color: #FDECEA;
    border: 1px solid #D32F2F;
    color: #B71C1C;
}

/* Banner */
.le-banner {
    background-color: #E7F6F8;
    border: 2px solid #00BDE3;
    padding: 10px 14px;
    margin: 10px 20px;
    font-size: 12px;
    color: #000;
}

/* Password row alignment */
.password-row {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 8px;
}

    .password-row input[type="password"],
    .password-row input[type="text"] {
        flex: 1;
    }

.toggle-password {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

    .toggle-password img {
        width: 24px;
        height: 24px;
    }

/* Small inline link style */
.le-link-sm {
    font-size: 16px; 
    color: #0000FF; 
    font-weight: 400;
    cursor: pointer;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

    /* Hover state */
    .le-link-sm:hover,
    .le-link-sm:focus {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 2px;
        color: #003f7d; 
    }

    /* Selected state */
    .le-link-sm:visited {
        color: #0A5E2E
    }

.footer-links .le-link-sm:visited {
    color: #C7FFB0/* your footer-specific visited color */;
}

/* ============================================================
   4. LAYOUT (Containers, Columns, Header/Footer, Responsive)
   ============================================================ */
/* Header banner */
#heading {
    text-align: left;
    margin-left: 20px;
}

#banner {
    background: #155C91;
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.banner-logo {
    height: 60px; /* or max-height: 60px; */
    width: auto; /* keeps aspect ratio */
    object-fit: contain; /* ensures no distortion */
    margin-right: 20px;
}

#bannerlink {
    position: absolute;
    right: 0;
    top: 8px;
    margin: 10px;
    display: block;
    padding: 5px 8px;
    font-size: .75em; /* ~12px */
}

/* Footer */
#footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #155C91;
    text-align: center;
}

.sawFooterBox {
    display: flex;
    align-items: center;
    max-width: 140px;
}

#btnColumn,
#btnColumn2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*#serviceTypeContent {
    display: block;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 60px 10px 60px;
}*/


.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: white;
    margin-left: 25px;
}


    .footer-links a {
        color: white;
        font-size: 12px;
    }

        .footer-links a:hover {
            text-decoration: underline;
            text-decoration-thickness: 2px;
            text-underline-offset: 2px;
        }


.footer-sep {
    color: white;
    opacity: 0.7;
}

.footer-copy {
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-secured {
    margin-top: 20px;
    color: white;
    font-size: 0.875rem;
}


/* ============================================================
   5. UTILITIES (Spacing, Flex, Alignment)
   ============================================================ */

.mt-20 {
    margin-top: 20px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-5 {
    margin-bottom: 5px;
}

.ml-20 {
    margin-left: 20px;
}

.pt-3 {
    padding-top: 3px;
}
.ml-5{
    margin-left:5px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-center {
    justify-content: center;
    align-items: center;
}


/* ============================================================
   6. LEGACY SHIMS (Preserve IDs, Remove Conflicts)
   ============================================================ */

/* Legacy section padding */
#join,
#enterAccount,
#forgotPassword,
#serviceTypeContent,
#emailSentContent,
#userInfo,
#changePassword,
#resendEmail,
#joinLX {
    padding: 10px 60px 10px 60px;
}

#login {
    padding: 10px 60px 10px 60px;
}

#checkBoxContent {
    padding: 10px 60px 10px 60px;
}

/* Legacy messages */
.successMsg {
    color: #008000;
    font-weight: bold;
    padding: 5px 15px;
    border: 1px solid #008000;
}

.sentMsg {
    color: #008000;
    font-weight: bold;
}

.sentMsgError {
    color: #f58020;
    font-weight: bold;
}


/* Main error under the Log In button */
.le-main-error {
    font-family: Aptos, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #D54309;
    min-height: 30px;
}

/* Main error in ServiceType */
.le-main-error-ServiceType {
    font-family: Aptos, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #D54309;
    margin: 0;
    padding: 0;
    display: block;
    min-height: 30px;
}

/* Default state */
.le-existing-acct-link {
    font-family: Aptos, sans-serif;
    font-size: 16px;
    color: #0000FF;
    text-decoration: underline;
}

    /* Visited state */
    .le-existing-acct-link:visited {
        color: #0A5E2E;
    }

    /* Hover/focus (optional but recommended for accessibility) */
    .le-existing-acct-link:hover,
    .le-existing-acct-link:focus {
        text-decoration: none;
    }


/* Outer wrapper: always reserves space */
.le-error-container {
    min-height: 30px; /* adjust to match your line-height */
    position: relative;
}

    /* Inner block: backend may set display:none — we override it */
    .le-error-container > .le-error-block[style*="display:none"] {
        display: flex !important;
        visibility: hidden; /* invisible but still takes up space */
    }

/* Inner block should never exceed wrapper height */
.le-error-block {
    display: flex !important;
    align-items: center;
    min-height: inherit;
    padding: 0;
    margin: 0;
}

.le-error-flex-end {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
}




/*.le-main-error-underBTN {
    display: none; 
    font-family: Aptos, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #D54309;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 5px;
    margin-bottom: 10px;
}*/

.le-main-error-Banner {
    display: none; /* hidden until backend shows it */
    font-family: Aptos, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #D54309;
    min-height: 16px;
    padding-top: 5px;
    margin-bottom: 10px;
    border: 2px solid #cc0000; /* red border */
    background-color: #fff5f5; /* light red background */
    padding: 5px 15px;
    border-radius: 4px;
    width: auto;
    max-width: 100%;
}

    /* Link styling inside the banner */
    .le-main-error-Banner a {
        color: #003399;
        text-decoration: underline;
        font-weight: bold;
    }

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* pushes children to the right */
}

/* Field-level error text */
.le-error-text {
    font-family: Aptos, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #D54309;
    margin: 0;
    padding: 0;
    display: block;
}

/* Prevent nested block from adding height */
.field-error-block {
    padding: 0;
    margin: 0;
    line-height: 1.5;
}


.le-input,
.le-input--error {
    box-sizing: border-box;
}

/* Error input styling */
.le-input--error {
    border: 2px solid #D54309 !important;
    background-color: #F4E3DB !important;
}

/* SUCCESS STATE — Password field */
.le-input-success {
    border: 2px solid #00A91C !important;
    background-color: #ECF3EC !important;
}

/* Success message */
.le-success-block {
    margin-top: 4px;
    font-family: "Aptos", sans-serif;
    font-size: 16px;
    line-height: 16px;
    font-weight: 700;
    color: #00A91C;
}

.le-success-black {
    margin-top: 4px;
    font-family: "Aptos", sans-serif;
    font-size: 16px;
    line-height: 16px;
    font-weight: 700; /* bold */
    color: #000000;
}

.le-alert--success .le-link {
    font-size: 16px; 
    font-weight: 400; 
    display: inline-block;
    margin-top: 5px;
}


.le-intro-text {
    margin-left: 36px;
    font-size: 16px;
}

.le-subtype-item {
    margin-left: 15px;
}
/* Links inside #wrap (legacy behavior preserved) */
/*#wrap a,
#wrap a:active,
#wrap a:visited {
    color: #FFFFFF;
}*/
#wrap {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
}

/* Container for the two forgot links */
.forgot-links {
    max-width:400px;
    display: flex;
    justify-content:space-between;
    align-items: center;
}

.le-card {
    padding: 5px;
}

    .le-card ul,
    .le-card ol {
        list-style: disc;
        margin-left: 20px;
    }

.le-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

    .le-list li {
        margin-bottom: 8px;
        line-height: 1.5;
    }

.le-list-service ul {
    margin-left: 20px;
    padding-left: 20px;
    list-style-type: disc;
}

.le-list-service li {
    margin-bottom: 6px;
    line-height: 1.5;
}
/* Container aligns radio + label */
.le-radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

    /* Hide the native radio but keep it accessible */
    .le-radio-option input[type="radio"] {
        -webkit-appearance: none;
        width: 24px;
        height: 24px;
        border: 2px solid #005ea2; /* LE blue */
        border-radius: 50%;
        position: relative;
        cursor: pointer;
        outline: none;
        background: #fff;
    }

        .le-radio-option input[type="radio"]:checked::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 14px;
            height: 14px;
            background: #005ea2;
            border-radius: 50%;
            transform: translate(-50%, -50%);
        }

.le-success-title {
    font-family: Aptos, sans-serif;
    font-size: 19px;
    font-weight: 700; /* bold */
    color: #1B1B1B;
    margin-bottom: 4px;
}

.le-success-subtext {
    font-family: Aptos, sans-serif;
    font-size: 16px;
    font-weight: 400; /* normal */
    color: #1B1B1B;
}

/* Label styling */
.le-radio-label {
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    color: #1b1b1b;
}
/* Main content layout (FLEX) */
#defaultContent {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start; /* important: prevents vertical centering */
    gap: 20px;
}

#ftime.twocol {
    flex: 0 0 45%;
}

#login.twocol {
    flex: 0 0 55%;
}

/* Right column */
#login {
    border-left: 2px solid #ccc;
}

/* PKMS form aligns naturally under the right column */
#frmLogin {
}


/* Tablet */
@media screen and (max-width: 900px) and (min-width: 601px) {
    #defaultContent {
        flex-direction: row;
        align-items: flex-start;
    }

    #ftime.twocol,
    #login.twocol {
        flex: 0 0 50%;
        max-width: 50%;
        min-width: 0;
    }

    #login {
        border-left: 2px solid #ccc;
        border-top: none;
        padding-top: 0;
    }

    .le-btn--login {
        width: 100%;
        max-width: 100%;
    }
}


/* Mobile */
@media screen and (max-width: 600px) {
    #defaultContent {
        flex-direction: column;
        align-items: stretch;
    }

    #join,
    #enterAccount,
    #forgotPassword,
    #serviceTypeContent,
    #emailSentContent,
    #userInfo,
    #changePassword,
    #resendEmail,
    #joinLX,
    #login,
    #checkBoxContent {
        padding: 10px 20px;
    }

    .le-input {
        max-width: 100% !important;
    }



    .le-btn--login {
        width: 100%;
        max-width: 100%;
        display: block;
        padding-left: 20px;
        padding-right: 20px;
    }


    #ftime.twocol,
    #login.twocol {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 0;
    }

    #login {
        border-left: none;
        border-top: 2px solid #ccc;
        padding-top: 20px;
    }
}

