/* ===== Common Login Panel — shared by CTW, cs_up, BKS ===== */

.common-login-panel {
    width: 560px;
    height: 100%;
    background-color: rgba(245, 247, 249, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 80px 42px 80px;
    gap: 60px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.common-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 393px;
    background-image:
        linear-gradient(to right, rgba(173, 198, 224, 0.25) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(173, 198, 224, 0.25) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px;
    -webkit-mask-image: linear-gradient(135deg, rgba(0, 0, 0, 1) 8%, rgba(0, 0, 0, 0) 88%);
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, 1) 8%, rgba(0, 0, 0, 0) 88%);
    pointer-events: none;
}

.common-logo-area {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 16px;
    width: 100%;
    z-index: 1;
}

.common-login-logo {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex: 0 0 auto;
}

.common-system-name {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: 28px;
    line-height: 1.2;
    color: #101123;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    flex: 0 0 auto;
}

#systemTitle {
    display: block;
}

.common-form-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    z-index: 1;
}

.common-input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #bdc8d4;
    border-radius: 6px;
    padding: 4px 12px;
    height: 40px;
    box-sizing: border-box;
    position: relative;
}

.common-input-wrapper--error {
    border-color: #e84c3d;
    box-shadow: 0 0 6px #f8b9b7;
}

.common-input-wrapper:focus-within {
    border-color: #66afe9;
    box-shadow: 0 0 8px rgba(102, 175, 233, .6);
}

.common-input-icon {
    display: flex;
    align-items: center;
    margin-right: 8px;
    flex-shrink: 0;
    color: #214381;
}

.common-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    font-family: Arial, sans-serif;
    color: #252a31;
    flex: 1;
    width: 100%;
    height: 100%;
    padding: 0;
    box-shadow: none;
}

.common-input-wrapper .common-input {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    appearance: none;
    -webkit-appearance: none;
}

.common-input::placeholder {
    color: #bdc8d4;
}

.common-pwd-input {
    padding-right: 28px;
}

.common-eye-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 16px;
    height: 16px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.common-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.common-capslock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4f5e71;
    font-family: Arial, sans-serif;
    line-height: 16px;
    min-height: 16px;
}

.common-capslock > svg {
    flex-shrink: 0;
    display: block;
}

.common-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.common-remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #252a31;
    font-family: Arial, sans-serif;
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

.common-remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.common-forgot-link {
    font-size: 13px;
    color: #175ad5 !important;
    text-decoration: underline;
    font-family: Arial, sans-serif;
}

.common-signin-btn {
    background-color: #141c71;
    color: #ffffff;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    height: 40px;
    line-height: 40px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0px 2px 0px 0px #edf3fc;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}

.common-signin-btn:hover {
    background-color: #1e2690;
}

.common-sso-divider {
    display: flex;
    align-items: center;
    gap: 17px;
}

.common-divider-line {
    flex: 1;
    height: 1px;
    background-color: #bdc8d4;
}

.common-sso-divider > span {
    font-size: 14px;
    color: #7a94b8;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    line-height: 22px;
}

.common-sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #bdc8d4;
    border-radius: 8px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0px 2px 0px 0px #edf3fc;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}

.common-sso-btn:hover {
    background-color: #fff3f3;
}

.common-sso-btn > span {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: #da291c;
    line-height: 24px;
}

.common-oocl-icon {
    width: 18px;
    height: 18px;
}

/* ===== Shared utility styles — ieWarning, loginMsg, inputTip, etc. ===== */

#ieWarning {
    display: none;
    color: white;
    background-color: #ea5244;
    border: 1px #dc3a2a solid;
    width: 100%;
    height: 30px;
    font-size: 15px;
    line-height: 28px;
    z-index: 2;
    position: absolute;
    top: 0;
    text-align: center;
}

.loginMsgContainer {
    position: fixed;
    top: 5px;
    left: 41%;
    z-index: 99999;
    text-align: center;
}

.loginMsg {
    text-align: left;
    margin: 0px auto;
    border-radius: 5px;
    padding: 0px 10px;
    color: #333333;
    font-size: 14px;
    font-family: Arial,Helvetica,Microsoft Yahei,Sans-serif,SimSun;
    font-weight: bold;
    background: #F9EDBE;
}

.inputTip {
    position: absolute;
    top: 10px;
    right: -30px;
    display: none;
}

.inputTip:before {
    content: "";
}

.inputTip:hover:after {
    content: "This field is required";
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    height: auto;
    position: absolute;
    width: 120px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    right: 10px;
    bottom: 25px;
    background: #F9EDBE;
    border: 2px solid #E67322;
    border-radius: 2px;
}

.grecaptcha-badge { visibility: hidden; }
