/*
 * Silal Custom Login Page CSS
 * Uses EIA login page UI layout (left graphic panel + right white card with rounded corners)
 * styled with Silal site primary colors.
 *
 * SCOPED STRICTLY TO body.path-login AND body.pagelayout-login TO PREVENT ANY EFFECT ON DASHBOARD OR OTHER PAGES.
 */

body.path-login,
body.path-login #page,
body.path-login #page-wrapper,
body.path-login .tui-root,
body.pagelayout-login,
body.pagelayout-login #page,
body.pagelayout-login #page-wrapper,
body.pagelayout-login .tui-root {
    background-color: #0c1220 !important;
    background: #0c1220 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    height: 100vh !important;
    overflow: hidden !important;
}

/* Page wrapper container */
body.path-login .tui-core_auth-loginLayout,
body.path-login .tui-core_auth-loginLayout--hasBackground,
body.pagelayout-login .tui-core_auth-loginLayout,
body.pagelayout-login .tui-core_auth-loginLayout--hasBackground {
    min-height: 100vh !important;
    height: 100vh !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    background-color: #0c1220 !important;
    background: #0c1220 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Layout Panels (Flexbox container) */
body.path-login .tui-core_auth-loginLayout__panels,
body.path-login .tui-core_auth-loginLayout--hasBackground .tui-core_auth-loginLayout__panels,
body.pagelayout-login .tui-core_auth-loginLayout__panels,
body.pagelayout-login .tui-core_auth-loginLayout--hasBackground .tui-core_auth-loginLayout__panels {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    height: calc(100vh - 40px) !important;
    max-height: calc(100vh - 40px) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    grid-template-columns: none !important;
}

/* Left Side: Background Graphic Image Panel */
body.path-login .tui-core_auth-loginLayout__panel-graphic,
body.path-login .tui-core_auth-loginLayout--hasBackground .tui-core_auth-loginLayout__panel-graphic,
body.pagelayout-login .tui-core_auth-loginLayout__panel-graphic,
body.pagelayout-login .tui-core_auth-loginLayout--hasBackground .tui-core_auth-loginLayout__panel-graphic {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    flex: 2.2 !important; /* ~68% width */
    width: 68% !important;
    height: 100% !important;
    border-radius: 20px !important; /* Curved border matching EIA */
    overflow: hidden !important;
    order: 1 !important; /* Position image on the LEFT */
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
}

/* Right Side: Login Interface Panel */
body.path-login .tui-core_auth-loginLayout__panel-interface,
body.path-login .tui-core_auth-loginLayout--hasBackground .tui-core_auth-loginLayout__panel-interface,
body.pagelayout-login .tui-core_auth-loginLayout__panel-interface,
body.pagelayout-login .tui-core_auth-loginLayout--hasBackground .tui-core_auth-loginLayout__panel-interface {
    position: relative !important;
    flex: 1 !important; /* ~32% width */
    width: 32% !important;
    min-width: 360px !important;
    height: 100% !important;
    background: #ffffff !important; /* Clean white card */
    border-radius: 20px !important; /* Curved border matching EIA */
    order: 2 !important; /* Position login panel on the RIGHT */
    padding: 36px 32px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow-y: auto !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body.path-login .tui-core_auth-loginLayout__panel-interface::-webkit-scrollbar,
body.pagelayout-login .tui-core_auth-loginLayout__panel-interface::-webkit-scrollbar {
    display: none !important;
}
body.path-login .tui-core_auth-loginLayout__panel-interface,
body.pagelayout-login .tui-core_auth-loginLayout__panel-interface {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}

/* Ensure all inner containers have transparent background */
body.path-login .tui-core_auth-loginNav,
body.path-login .tui-core_auth-loginLayout__contentWrap,
body.path-login .tui-core_auth-loginLayout__main,
body.path-login .tui-core_auth-login,
body.path-login .tui-core_auth-loginForm,
body.path-login .tui-form,
body.path-login .tui-core_auth-footer,
body.pagelayout-login .tui-core_auth-loginNav,
body.pagelayout-login .tui-core_auth-loginLayout__contentWrap,
body.pagelayout-login .tui-core_auth-loginLayout__main,
body.pagelayout-login .tui-core_auth-login,
body.pagelayout-login .tui-core_auth-loginForm,
body.pagelayout-login .tui-form,
body.pagelayout-login .tui-core_auth-footer {
    background: transparent !important;
    background-color: transparent !important;
}

/* Let the login content stack naturally from top without huge empty gaps */
body.path-login .tui-core_auth-loginLayout__contentWrap,
body.pagelayout-login .tui-core_auth-loginLayout__contentWrap {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    flex-grow: 1 !important;
    margin-top: 10px !important;
}

body.path-login .tui-core_auth-loginLayout__main,
body.path-login .tui-core_auth-login,
body.path-login .tui-core_auth-stackChooser,
body.path-login .tui-core_auth-stackChooser__option,
body.pagelayout-login .tui-core_auth-loginLayout__main,
body.pagelayout-login .tui-core_auth-login,
body.pagelayout-login .tui-core_auth-stackChooser,
body.pagelayout-login .tui-core_auth-stackChooser__option {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Logo styling */
body.path-login .tui-core_auth-loginNav,
body.pagelayout-login .tui-core_auth-loginNav {
    margin-bottom: 20px !important;
    padding: 0 !important;
}

body.path-login .tui-core_auth-loginNav__image,
body.pagelayout-login .tui-core_auth-loginNav__image {
    max-height: 60px !important;
    max-width: 180px !important;
    object-fit: contain !important;
}

/* Title & Subheading */
body.path-login .tui-core_auth-login__title,
body.pagelayout-login .tui-core_auth-login__title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--color-text, #1e293b) !important;
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}

body.path-login .tui-core_auth-login__title::after,
body.pagelayout-login .tui-core_auth-login__title::after {
    content: "Please login to your account";
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    margin-top: 4px;
    margin-bottom: 20px;
}

/* SSO Button (Leejam Login / Start your Journey) */
body.path-login .tui-core_auth-stackChooser,
body.pagelayout-login .tui-core_auth-stackChooser {
    margin-bottom: 16px !important;
}

body.path-login .tui-core_auth-stackChooser__option,
body.pagelayout-login .tui-core_auth-stackChooser__option {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: var(--color-text, #1e293b) !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s ease-in-out !important;
}

body.path-login .tui-core_auth-stackChooser__option:hover,
body.pagelayout-login .tui-core_auth-stackChooser__option:hover {
    border-color: var(--color-primary, #273160) !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(39, 49, 96, 0.12) !important;
}

/* Hide or minimize separator line */
body.path-login .tui-core_auth-login__separator,
body.pagelayout-login .tui-core_auth-login__separator {
    display: none !important;
}

/* When silal-sso-only body class is active (standard login/index.php without ?nosso=1):
   Hide manual username/password fields, labels, and submit button so only the SSO button shows. */
body.silal-sso-only .tui-form,
body.silal-sso-only .tui-core_auth-login__form,
body.silal-sso-only .tui-core_auth-loginForm,
body.silal-sso-only .tui-formRow,
body.silal-sso-only button.tui-btn--primary,
body.silal-sso-only button[type="submit"],
body.silal-sso-only .tui-btn--variant-primary {
    display: none !important;
}

/* Form Controls (Inputs & Labels) */
body.path-login .tui-formRow,
body.pagelayout-login .tui-formRow {
    margin-bottom: 14px !important;
}

body.path-login .tui-formLabel,
body.pagelayout-login .tui-formLabel {
    color: var(--color-text, #334155) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-bottom: 6px !important;
}

body.path-login .tui-customInput__input,
body.path-login input[type="text"],
body.path-login input[type="password"],
body.pagelayout-login .tui-customInput__input,
body.pagelayout-login input[type="text"],
body.pagelayout-login input[type="password"] {
    background-color: #ffffff !important; /* Clean white input background matching site style */
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    color: var(--color-text, #1e293b) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease-in-out !important;
}

body.path-login .tui-customInput__input:focus,
body.path-login input[type="text"]:focus,
body.path-login input[type="password"]:focus,
body.pagelayout-login .tui-customInput__input:focus,
body.pagelayout-login input[type="text"]:focus,
body.pagelayout-login input[type="password"]:focus {
    border-color: var(--color-primary, #273160) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(39, 49, 96, 0.15) !important;
    outline: none !important;
}

/* Submit Button - Site Primary Color */
body.path-login button.tui-btn--primary,
body.path-login button[type="submit"],
body.pagelayout-login button.tui-btn--primary,
body.pagelayout-login button[type="submit"] {
    background-color: var(--color-primary, #273160) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 13px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    width: 100% !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    transition: background-color 0.2s ease-in-out !important;
    box-shadow: 0 4px 12px rgba(39, 49, 96, 0.25) !important;
}

body.path-login button.tui-btn--primary:hover,
body.path-login button[type="submit"]:hover,
body.pagelayout-login button.tui-btn--primary:hover,
body.pagelayout-login button[type="submit"]:hover {
    background-color: var(--color-state-hover, #1d2756) !important;
}

/* Footer Links & Text */
body.path-login .tui-core_auth-footer,
body.pagelayout-login .tui-core_auth-footer {
    margin-top: auto !important;
    padding-top: 14px !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    text-align: right !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Error Messages (EIA Style) */
body.path-login .tui-core_auth-login__error,
body.path-login .loginerrors,
body.path-login #loginerrormessage,
body.path-login .tui-notify--error,
body.path-login .tui-formError,
body.pagelayout-login .tui-core_auth-login__error,
body.pagelayout-login .loginerrors,
body.pagelayout-login #loginerrormessage,
body.pagelayout-login .tui-notify--error,
body.pagelayout-login .tui-formError {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 10px !important;
    margin-bottom: 20px !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(234, 62, 62, 0.4) !important;
    background: rgba(255, 89, 89, 0.16) !important;
    color: #c4202c !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 12px rgba(234, 62, 62, 0.08) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Red exclamation mark circle icon on the left */
body.path-login .tui-core_auth-login__error::before,
body.path-login .loginerrors::before,
body.path-login #loginerrormessage::before,
body.path-login .tui-notify--error::before,
body.pagelayout-login .tui-core_auth-login__error::before,
body.pagelayout-login .loginerrors::before,
body.pagelayout-login #loginerrormessage::before,
body.pagelayout-login .tui-notify--error::before {
    content: '!' !important;
    min-width: 26px !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: rgba(234, 62, 62, 0.2) !important;
    border: 1px solid rgba(234, 62, 62, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #c4202c !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

body.path-login .tui-core_auth-login__errorInner,
body.pagelayout-login .tui-core_auth-login__errorInner {
    color: #c4202c !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

/* Responsive for smaller screens / tablets */
@media (max-width: 900px) {
    body.path-login,
    body.path-login .tui-root,
    body.path-login .tui-core_auth-loginLayout,
    body.pagelayout-login,
    body.pagelayout-login .tui-root,
    body.pagelayout-login .tui-core_auth-loginLayout {
        height: auto !important;
        overflow: auto !important;
    }

    body.path-login .tui-core_auth-loginLayout__panels,
    body.path-login .tui-core_auth-loginLayout--hasBackground .tui-core_auth-loginLayout__panels,
    body.pagelayout-login .tui-core_auth-loginLayout__panels,
    body.pagelayout-login .tui-core_auth-loginLayout--hasBackground .tui-core_auth-loginLayout__panels {
        flex-direction: column !important;
        height: auto !important;
        max-height: none !important;
    }

    body.path-login .tui-core_auth-loginLayout__panel-graphic,
    body.path-login .tui-core_auth-loginLayout--hasBackground .tui-core_auth-loginLayout__panel-graphic,
    body.pagelayout-login .tui-core_auth-loginLayout__panel-graphic,
    body.pagelayout-login .tui-core_auth-loginLayout--hasBackground .tui-core_auth-loginLayout__panel-graphic {
        width: 100% !important;
        height: 250px !important;
        min-height: 250px !important;
        order: 1 !important;
    }

    body.path-login .tui-core_auth-loginLayout__panel-interface,
    body.path-login .tui-core_auth-loginLayout--hasBackground .tui-core_auth-loginLayout__panel-interface,
    body.pagelayout-login .tui-core_auth-loginLayout__panel-interface,
    body.pagelayout-login .tui-core_auth-loginLayout--hasBackground .tui-core_auth-loginLayout__panel-interface {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        order: 2 !important;
    }
}

/*new css vineesh 28 JUL 2026 start */
#page-login-index .tui-core_auth-loginLayout__panel-interface,
.tui-core_auth-loginLayout--hasBackground .tui-core_auth-loginLayout__panel-interface,
body.path-login .tui-core_auth-loginLayout__panel-interface,
body.pagelayout-login .tui-core_auth-loginLayout__panel-interface {
    box-shadow: none !important;
}

#page-login-index .tui-core_auth-loginLayout__panel-graphic,
.tui-core_auth-loginLayout--hasBackground .tui-core_auth-loginLayout__panel-graphic,
body.path-login .tui-core_auth-loginLayout__panel-graphic,
body.pagelayout-login .tui-core_auth-loginLayout__panel-graphic {
    box-shadow: none !important;
    flex: 3.3 !important;
}

#page-login-index .tui-core_auth-loginLayout,
.tui-core_auth-loginLayout--hasBackground,
body.path-login .tui-core_auth-loginLayout,
body.pagelayout-login .tui-core_auth-loginLayout {
    background: #daeafa !important;
}

#page-login-index .tui-core_auth-login__title::after,
body.path-login .tui-core_auth-login__title::after,
body.pagelayout-login .tui-core_auth-login__title::after {
    display: none !important;
}

#page-login-index .tui-core_auth-loginNav__image,
body.path-login .tui-core_auth-loginNav__image,
body.pagelayout-login .tui-core_auth-loginNav__image {
    height: 50px !important;
}

#page-login-index .tui-core_auth-loginForm__help,
body.path-login .tui-core_auth-loginForm__help,
body.pagelayout-login .tui-core_auth-loginForm__help {
    display: none !important;
}

#page-login-index .tui-core_auth-stackChooser__label,
body.path-login .tui-core_auth-stackChooser__label,
body.pagelayout-login .tui-core_auth-stackChooser__label {
    color: #fff !important;
}

#page-login-index .tui-core_auth-stackChooser__option,
body.path-login .tui-core_auth-stackChooser__option,
body.pagelayout-login .tui-core_auth-stackChooser__option {
    background: #273260 !important;
}

#page-login-index .tui-core_auth-stackChooser__option:hover,
body.path-login .tui-core_auth-stackChooser__option:hover,
body.pagelayout-login .tui-core_auth-stackChooser__option:hover {
    background: #273260 !important;
}
/*new css vineesh 28 JUL 2026 end */