/* Reset and Base Styles */
:root {
    --primary-blue: #3875f6;
    --primary-blue-hover: #5f91fa;
    --light-blue-bg: #f0f5ff;
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #999;
    --border-color: #e5e5e5;
    --form-bg: #fff;
    --white-color: #fff;
    --link-color: #3875f6;
    --danger-color: #ff5722;
    --box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background-color: #eef3fb; /* Fallback background */
    background-image: url('/static/images/loginBg1.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain; /* Or cover, adjust as needed */
    background-attachment: fixed; /* Keeps background fixed during scroll */
    min-height: 100vh;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--primary-blue-hover);
}

.container {
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Navigation */
.top-nav {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav a {
    display: flex;
    align-items: center;
    color: var(--light-text);
    text-decoration: none;
}
.top-nav a:hover {
     text-decoration: none;
}

.topnav-logo {
    height: 35px;
    margin-right: 10px;
}

.top-nav span {
    font-size: 16px;
    color: #666;
}

.back-to-home {
    font-size: 14px;
    color: var(--lighter-text);
}
.back-to-home:hover {
    color: var(--primary-blue);
}

/* Main Login Container */
.login-main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 60px; /* Account for fixed top nav */
}

.login-wrapper {
    display: flex;
    width: 1000px; /* Fixed width like the image */
    max-width: 95%;
    background-color: var(--light-blue-bg);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden; /* Ensures children conform to border-radius */
    margin: 40px auto; /* Center the box */
}

/* Left Feature Banner */
.login-banner {
    flex: 1;
    padding: 60px 40px;
    background-color: var(--light-blue-bg); /* Slightly different blue */
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.feature-text p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 0;
}

/* Right Login Form Wrapper */
.login-form-wrapper {
    flex: 1;
    background-color: var(--form-bg);
    padding: 40px;
    position: relative;
}

.login-box {
    width: 100%;
}

/* QR Code Entry */
.login-qrcode-entry {
    position: absolute;
    top: 15px;
    right: 15px;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background-color: #fff;
    transition: all 0.3s ease;
}

.login-qrcode-entry:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-qrcode-entry button {
    font-size: 12px;
    color: var(--light-text);
    background: none;
    border: none;
    padding: 5px 10px;
    display: block;
    margin: 0 auto 3px;
    cursor: pointer;
}

.login-qrcode-entry i {
    font-size: 28px;
    color: #888;
    display: block;
    padding-bottom: 5px;
}

/* Login Tabs */
.login-tabs {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.login-tabs .nav-item {
    flex: 1; /* Make tabs equal width */
    text-align: center;
}

.login-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--light-text);
    font-size: 18px;
    font-weight: 500;
    padding: 15px 0;
    margin-bottom: -1px; /* Overlap border */
    width: 100%;
    border-radius: 0;
    transition: all 0.3s ease;
}

.login-tabs .nav-link.active,
.login-tabs .nav-link:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background-color: transparent;
}

/* Form Styles */
.tab-content {
    padding-top: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    height: 48px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: none;
}

/* Input group for code button */
.form-group-code {
    position: relative;
}

.form-group-code .form-control {
    padding-right: 120px; /* Space for button */
}

.btn-send-code {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    border: none;
    background-color: var(--light-blue-bg);
    color: var(--primary-blue);
    font-size: 14px;
    padding: 0 15px;
    border-left: 1px solid var(--border-color);
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    width: 110px;
    transition: background-color 0.3s ease;
}

.btn-send-code:hover {
    background-color: #e4eefe;
}

.btn-send-code:disabled {
    background-color: #f8f8f8;
    color: var(--lighter-text);
    cursor: not-allowed;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.register-link, .forgot-link {
    color: var(--light-text);
}
.register-link:hover, .forgot-link:hover {
    color: var(--primary-blue);
}

.btn-login {
    width: 100%;
    height: 48px;
    background-color: var(--primary-blue);
    color: var(--white-color);
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: var(--primary-blue-hover);
}

/* Other Login Section */
.other-login-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.social-link {
    color: var(--light-text);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.social-link:hover {
    color: var(--primary-blue);
    text-decoration: none;
}
.social-link i {
    font-size: 18px;
}

/* Specific social icon colors */
.social-link.wechat i { color: #07C160; }
.social-link.qq i { color: #12B7F5; }
.social-link.weibo i { color: #E6162D; }

.contact-info {
    text-align: center;
    font-size: 12px;
    color: var(--lighter-text);
    line-height: 1.8;
}

/* Responsive Adjustments (Basic) */
@media (max-width: 1050px) {
    .login-wrapper {
        width: 90%;
    }
    .login-banner {
        display: none; /* Hide banner on smaller screens */
    }
    .login-form-wrapper {
       flex: 1; /* Take full width */
       border-radius: 10px; /* Apply radius here if banner hidden */
    }
}

@media (max-width: 576px) {
    .login-main-container {
        padding-top: 70px; /* Adjust padding for smaller screens */
    }
     .login-form-wrapper {
        padding: 30px 20px;
    }
    .login-tabs .nav-link {
        font-size: 16px;
        padding: 12px 0;
    }
     .login-qrcode-entry {
        top: 10px;
        right: 10px;
    }
    .social-login {
        gap: 15px;
        flex-wrap: wrap; /* Allow wrapping */
    }
    .social-link {
        font-size: 13px;
    }
} 