﻿
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

.theme_danger {
    color: red !important;
}

.login_title {
    font-weight: 600 !important;
    font-size: 32px;
    margin-bottom: 6px;
    line-height: 44px;
}

.login_description {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 28px;
    margin-top: 0;
    color: #666; 
}

#divMainContent {
    padding: 0px !important;
    float: none;
}

#refreshCaptcha {
    bottom: 0;
    display: inline-block;
    cursor: pointer;
    padding: .2em;
    transition: all .2s ease;
}

#captcha {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.captcha-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75em;
    width: 100%;
    margin-bottom: 28px;
}

    #captcha img {
        height: 40px !important;
        width: auto !important;
        border-radius: 6px !important;
        border: none !important;
        background: none !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
        min-width: 120px !important;
    }

.captcha-refresh {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6em 0.75em;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.captcha-refresh:hover {
    background: #f0f0f0;
    color: #333;
}

.captcha-input {
    flex: 1;
    min-width: 150px;
    max-width: none !important;
    height: 40px !important;
    padding: 0.6em 0.75em !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    display: block !important;
}

.captcha-input:focus {
    border-color: #3887f6 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(56, 135, 246, 0.1) !important;
}

    #captcha > * {
        float: none;
    }

.loginFormPanel {    
    width: 29em;
    max-width: calc(100% - 5em);
    min-height: 21em;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

#continueWithoutPassword, #resendOTP {
    display: none;
}

#loginPanel input {
    display: none;
    width: 92%;
    width: calc(100% - 2em);
    font-size: 1.1em;
    border-radius: 0px;
    border: none;
    outline: none;
    background-color: #fff;
    padding: 1em;
}

#loginTable {
    width: 100%;
    padding: 1.5em;
    border-radius: 1em;
}

#loginTable img[alt="Captcha"] {
    max-width: 100%;
}

.invalidInput {
    border-bottom: 1px solid red !important;
}

@-webkit-keyframes AnimationName {
    0% {
        background-position: 0% 61%;
    }

    50% {
        background-position: 100% 40%;
    }

    100% {
        background-position: 0% 61%;
    }
}

@-moz-keyframes AnimationName {
    0% {
        background-position: 0% 61%;
    }

    50% {
        background-position: 100% 40%;
    }

    100% {
        background-position: 0% 61%;
    }
}

@keyframes AnimationName {
    0% {
        background-position: 0% 61%;
    }

    50% {
        background-position: 100% 40%;
    }

    100% {
        background-position: 0% 61%;
    }
}

/* Login Page Styles */
body, html { 
    height: 100%; 
    margin: 0; 
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; 
    background: #fff; 
}

.login-page-wrapper {
    min-height: 100vh;
    width: 100vw;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.login-main {
    flex: 1;
    display: flex;
    height: 100vh;
}

.login-left, .login-right {
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
    min-height: 0;
    display: flex;
}

.login-left {
    flex-direction: column;
    background: #fff;
    position: relative;
}

.login_icon  {
    width: 161px;
    height: 27px;
    padding-top: 32px;
    padding-left: 32px;
}

/* RTL Support for login_icon  padding */
html[dir="rtl"] .login_icon ,
.rtl .login-header {
    padding-right: 32px;
    padding-left: 0;
}

.commbox-header-logo {
    max-width: 161px;
}

.login-forms-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#loginForms {
    width: 100%;
    max-width: 350px;
}

.login-right {
    padding: 32px 32px 32px 0;
    box-sizing: border-box;
}

.branding-image {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    border-radius: 14px;
    width: 100%;
    height: 100%;
}

.brand-name {
    color: #000;
    font-family: Poppins;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.brand-name-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #FFF;
    font-family: Poppins;
    font-size: 59.871px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

/* RTL Support for login-right margin */
html[dir="rtl"] .login-right,
.rtl .login-right {
    padding-left: 32px;
    padding-right: 0;
}

.login-logo { 
    margin-bottom: 2em; 
}

.login-logo img { 
    height: 32px; 
}

.login-form { 
    display: none; 
    flex-direction: column; 
    width: 100%; 
}

.login-form.active { 
    display: flex; 
}

.login-form input[type="email"], .login-form input[type="text"], .login-form input[type="password"] {
    padding: 0.75em; 
    border: 1px solid #CBCCCC; 
    border-radius: 6px; 
    font-size: 1em; 
    font-weight: 500;
    color: #3A3A3B !important;
    box-sizing: border-box;
    margin-bottom: 28px;
}

.password-field-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.password-field-container.first-before-requirements {
    margin-bottom: 10px;
}

.password-field-container input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75em 40px 0.75em 0.75em;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 1em;
    margin-bottom: 0 !important;
}

.login-form input[type="email"]:focus, .login-form input[type="text"]:focus, .password-field-container input:focus {
    border: 1px solid #3887f6;
    outline: none;
}

.password-toggle {
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    padding: 0;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:focus {
    outline: none;
}

.password-toggle .icon-visibility-icon,
.password-toggle .icon-visibility-off-icon {
    font-family: 'icomoon';
    font-size: 24px;
}

.login-btn { 
    background: #1877f2; 
    color: #fff; 
    border: none; 
    border-radius: 4px; 
    padding: 0.75em; 
    font-size: 14px; 
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 400;
    cursor: pointer; 
    max-width: 356px;
    max-height: 42px;
}

.login-btn:disabled { 
    background: #a0c3f7; 
}

.forgot-link { 
    color: #1877f2; 
    text-decoration: none; 
    font-size: 13px; 
    font-weight: 400;
    margin-top: 28px; 
    cursor: pointer; 
    text-align: center; 
    display: block; 
}

.forgot-link:hover { 
    text-decoration: underline; 
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    margin-bottom: 0;
    margin-right: 0.5em;
    color: #666;
    padding: 0;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.form-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
}

.form-header .login_title {
    margin: 0;
}

.success-icon {
    color: #22c55e;
    margin-right: 0.5em;
    font-size: 1.2em;
}


.back-link .icon-Arrow-Back-Icon {
    font-family: 'icomoon';
    font-size: 34px;
}

.form-header .success-checkmark {
    font-family: 'icomoon';
    font-size: 30px;
    color: #ffffff;
    margin-right: 0.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: #159A32;
    border-radius: 50%;
    flex-shrink: 0;
}

.error-message { 
    color: #e74c3c; 
    background: #fbeaea; 
    border-radius: 4px; 
    padding: 0.75em; 
    margin-bottom: 28px; 
    display: none; 
    font-size: 0.9em; 
    text-align: center;
}

.password-requirements { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 1em 0; 
    font-size: 12px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.048px;
    display: none;
    transition: all 0.3s ease;
}

.password-requirements.show {
    display: block;
}

.requirement-item { 
    color: #6A6B6B; 
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    font-size: 0.95em;
    font-weight: 400;
}

.requirement-icon {
    display: inline-block;
    font-family: 'icomoon' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    speak: none;
    margin-right: 8px;
    color: #dc3545;
    font-size: 14px;
}

[dir="rtl"] .requirement-icon {
    margin-right: 0;
    margin-left: 8px;
}

.requirement-item.valid {
    color: #28a745;
}

.requirement-item.valid .requirement-icon {
    color: #28a745;
}

.ajaxLoader {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin: 1em 0;
    display: none;
}

.invalidInput {
    border-color: #e74c3c !important;
    background-color: #fbeaea !important;
}

/* Disconnect buttons container */
.disconnect-buttons-container {
    display: flex;
    width: 356px;
    height: 41px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.disconnect-cancel-btn {
    background: #dbeafe;
    margin: 0;
    width: 168px;
    color: #1877f2;
    border: none; 
    border-radius: 4px; 
    padding: 0.75em; 
    font-size: 14px; 
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 400;
}

.disconnect-proceed-btn {
    margin: 0;
    width: 168px;
}

@media (max-width: 900px) {
    .login-main { 
        flex-direction: column; 
    }
    .login-right { 
        display: none !important;
        flex: 0 0 0;
        width: 0;
    }
    .login-left { 
        width: 100vw;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .login_icon  {
        align-self: center;
        margin-bottom: 2em;
        padding-left: 0;
    }
    
    .login-forms-center {
        width: 100%;
        max-width: 400px;
        align-items: center;
        justify-content: space-around;
    }

    #loginForms {
        padding: 0 22px;
    }

    .commbox-header-logo {
        max-width: 151px;
    }
}

/* RTL Support */


[dir="rtl"] .icon-Arrow-Back-Icon {
    display: none !important;
}
[dir="rtl"] .icon-Arrow-Forward-Icon {
    display: inline-block !important;
    font-family: 'icomoon';
    font-size: 34px;
}
[dir="rtl"] .back-link {
    margin-right: 0;
    margin-left: 0.5em;
}

[dir="rtl"] .form-header .success-checkmark {
    margin-right: 0;
    margin-left: 0.5em;
}

/* Mobile Apps Container - white background when empty */
.mobileAppsCont:empty {
    background-color: white !important;
}

/* Mobile Apps Container - white background when containing only whitespace */
.mobileAppsCont:not(:has(*)) {
    background-color: white !important;
}