/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    height: 100vh;
    overflow: hidden;
}

/* 登录容器 */
.login-container {
    display: flex;
    height: 100vh;
}

/* 左侧区域 */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.login-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.login-logo i {
    font-size: 3rem;
    margin-right: 1rem;
}

.login-logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.login-slogan {
    text-align: center;
    margin-bottom: 3rem;
}

.login-slogan h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-slogan p {
    font-size: 1rem;
    opacity: 0.8;
}

.login-features {
    margin-top: 3rem;
    width: 100%;
    max-width: 300px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.feature-item i {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.login-footer {
    position: absolute;
    bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 右侧区域 */
.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-form-container {
    width: 100%;
    max-width: 550px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
}

.login-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

/* 表单样式 */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group label i {
    margin-right: 0.5rem;
    color: #6e8efb;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #6e8efb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.form-row {
    display: flex;
    gap: 0.5rem;
}

.form-row input {
    flex: 1;
}

.sms-code-btn {
    flex: 0 0 120px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.sms-code-btn:hover {
    background: linear-gradient(to right, #5d7de8, #9666d8);
    box-shadow: 0 3px 10px rgba(110, 142, 251, 0.3);
}

.sms-code-btn:disabled {
    background: #ddd;
    cursor: not-allowed;
    box-shadow: none;
}

/* 密码输入框 */
.password-input {
    position: relative;
}

.show-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
}

.show-password:hover {
    color: #6e8efb;
}

/* 用户协议 */
.form-agreement {
    margin: 1.5rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.form-agreement input {
    margin-right: 0.5rem;
}

.form-agreement a {
    color: #6e8efb;
    text-decoration: none;
}

.form-agreement a:hover {
    text-decoration: underline;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.login-btn:hover {
    background: linear-gradient(to right, #5d7de8, #9666d8);
    box-shadow: 0 3px 10px rgba(110, 142, 251, 0.3);
}

/* 注册链接 */
.login-register {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.login-register a {
    color: #6e8efb;
    text-decoration: none;
}

.login-register a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-left {
        padding: 1.5rem;
        flex: none;
        height: auto;
    }
    
    .login-logo {
        margin-bottom: 1rem;
    }
    
    .login-slogan h2 {
        font-size: 1.5rem;
    }
    
    .login-features {
        display: none;
    }
    
    .login-footer {
        position: static;
        margin-top: 1.5rem;
    }
    
    .login-right {
        padding: 1.5rem;
    }
    
    .login-form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sms-code-btn {
        width: 100%;
    }
}