@charset "UTF-8";

:root {
    --primary-color: #0061ff;
    --primary-hover: #0056e0;
    --bg-color: #f0f4f9;
    --card-bg: #ffffff;
    --left-bg: #f5f7f9;
    --text-main: #1a1a1a;
    --text-sub: #8d94a1;
    --input-bg: #f4f5f7;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-color);
}

.L_code_new {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.L_card {
    display: flex;
    width: 1150px;
    max-width: 95%;
    min-height: 600px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.L_card_left {
    width: 360px;
    flex: none;
    background: var(--left-bg);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.L_card_left_inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.L_brand {
    margin-bottom: 40px;
}

.L_marketing {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.L_m_title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 10px 0;
}

.L_m_desc {
    font-size: 14px;
    color: var(--text-sub);
    margin: 0 0 30px 0;
}

.L_placeholder {
    flex: 1;
    background: #fff;
    border: 1px dashed #e1e4e8;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    min-height: 200px;
}

.L_p_text {
    color: #abb2bf;
    font-size: 14px;
}

.L_m_links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.L_m_links li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.L_m_links li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.L_m_links li a {
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    transition: color 0.2s;
}

.L_m_links li a:hover {
    color: var(--primary-color);
}

.L_card_right {
    flex: 1;
    padding: 50px 40px;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Tab Styles */
.code_login-tab {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.login-tab-item {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-sub);
    padding-bottom: 12px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.login-tab-item.active {
    color: var(--text-main);
}

.login-tab-item.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Form Styles */
.L_title_right {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group label span.required {
    color: #ef4444;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    background: var(--input-bg);
    border: none;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    transition: background 0.2s;
}

.form-control:focus {
    background: #eceef2;
}

.input-group {
    display: flex;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-append .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

.forgot-pw {
    text-align: right;
    margin-bottom: 30px;
}

.forgot-pw a {
    font-size: 13px;
    color: var(--text-sub);
    text-decoration: none;
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--primary-hover);
}

.register-tip {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: var(--text-sub);
}

.register-tip a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .L_card {
        flex-direction: column;
        width: 100%;
        min-height: auto;
    }
    .L_card_left {
        display: none; /* Hide marketing on mobile for better UX */
    }
    .L_card_right {
        padding: 40px 30px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* ====== Restored Layout Classes ====== */
.L_code-right-form {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
}

.L_code-scan-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 280px;
    border-right: 1px solid #f0f0f0;
    margin-right: 30px;
    padding-right: 30px;
}

.L_code-scan-login .qrCodeContainer {
    width: 188px;
    height: 188px;
    position: relative;
    margin-bottom: 20px;
}

.L_code-scan-login .qrCodeContainer #L_qrCode {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.L_code-scan-login .wechat-login {
    text-align: center;
}

.L_code-login-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

.L_code-form-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.code_login-tab {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

.login-tab-separate {
    background: #d9d9d9;
    height: 16px;
    margin: 0 16px;
    width: 1px;
}

/* Custom Dropdown (Phone Country Code) */
.custom-dropdown {
    position: relative;
    width: 120px;
}

.custom-dropdown-selection {
    height: 100%;
    padding: 12px 15px;
    background: var(--input-bg);
    border-radius: 6px 0 0 6px;
    border-right: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.custom-dropdown-selection::after {
    content: "▼";
    font-size: 10px;
    margin-left: 8px;
    color: #888;
}

.custom-dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 0;
    margin: 5px 0 0 0;
    list-style: none;
}

.custom-dropdown-list li {
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-dropdown-list li:hover {
    background: #f5f5f5;
}

.Oauth_login {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.other-login {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.gray-line {
    flex: 1;
    height: 1px;
    background: #eee;
}

.gray-text {
    padding: 0 15px;
    color: var(--text-sub);
    font-size: 13px;
}

.list-inline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.social-list-item {
    display: inline-block;
    width: 40px;
    height: 40px;
}

.social-list-item .icon {
    width: 100%;
    height: 100%;
}

.L_code-right-footer {
    margin-top: auto;
    padding-top: 40px;
    padding-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    font-size: 13px;
    color: var(--text-sub);
    width: 100%;
}

.L_code-right-footer a {
    color: var(--text-sub);
    text-decoration: none;
}

.L_code-right-footer a:hover {
    color: var(--primary-color);
}

.transitionSwitching {
    display: none;
}

.ExtremeTest_captcha {
    height: 40px;
}

.input-group-append .btn-primary, .input-group-append .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

/* QR Code Tooltip & Refresh Overlay */
.qrCodeContainer .codetip-inner {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    white-space: nowrap;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    z-index: 10;
    border: 1px solid #f0f0f0;
}

.qrCodeContainer .codetip-inner::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

#regenerateQrCode {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.95);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 20;
}

.L_code-right-form.no_wx .L_code-scan-login {
    display: none !important;
}

.L_code-right-form.right {
    flex-direction: row-reverse;
}

.L_code-right-form.right .L_code-scan-login {
    border-right: none;
    border-left: 1px solid #f0f0f0;
    margin-right: 0;
    padding-right: 0;
    margin-left: 30px;
    padding-left: 30px;
}
