:root {
    --primary-color: #1890ff;
    --primary-dark: #096dd9;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    background-image: url('background-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#app {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    width: 1200px;
    overflow: hidden;
}

.welcome-section {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: var(--white);
    padding: 80px;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-section h2 {
    font-size: 32px;
    margin: 0;
    font-weight: normal;
}

.welcome-section h1 {
    font-size: 42px;
    margin: 20px 0;
}

.welcome-text {
    font-size: 24px;
    margin: 12px 0;
}

.welcome-subtext {
    font-size: 18px;
    opacity: 0.8;
    margin: 8px 0;
}

.login-section {
    padding: 64px;
    width: 60%;
}

.login-header {
    text-align: left;
    margin-bottom: 50px;
}

.login-header h2 {
    font-size: 32px;
    color: var(--text-color);
    margin: 0;
}

.login-subheader {
    color: var(--text-light);
    margin: 8px 0;
    font-size: 18px;
}

.login-tip {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 16px;
    text-align: left;
}

.input-wrapper {
    position: relative;
    margin-bottom: 32px;
}

.login-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 18px;
    box-sizing: border-box;
    transition: all 0.3s;
    color: var(--text-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.login-input[type="text"],
.login-input[type="password"] {
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.login-input::placeholder {
    color: transparent;
}

.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #096dd9;
}

.login-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.login-help-link {
    color: #1890ff;
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.login-help-link:hover {
    color: #096dd9;
    text-decoration: underline;
}

/* 弹框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-tip {
    text-align: center;
    font-size: 18px;
    color: var(--text-color);
    margin: 0 0 24px 0;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qrcode-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 移除密码输入框的默认图标 */
.login-input::-ms-reveal,
.login-input::-ms-clear {
    display: none;
}

/* 响应式设计 */
@media (max-width: 1280px) {
    .login-card {
        width: 90%;
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        width: 90%;
        max-width: 500px;
    }
    
    .welcome-section,
    .login-section {
        width: 100%;
        padding: 40px;
    }
    
    .welcome-section {
        text-align: center;
    }

    .welcome-section h2 {
        font-size: 28px;
    }

    .welcome-section h1 {
        font-size: 36px;
    }

    .welcome-text {
        font-size: 20px;
    }

    .login-header h2 {
        font-size: 28px;
    }
} 