/* 登录区域样式 */
.login-section {
    min-height: 700px;
    padding: 40px 0;
    background: #f5f5f5;
}

.login-box {
    width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

/* 登录方式切换 */
.login-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.login-tabs a {
    position: relative;
    padding: 0 10px;
    color: #666;
    font-size: 16px;
}

.login-tabs a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: all 0.3s;
}

.login-tabs a.active {
    color: #2979ff;
}

.login-tabs a.active:after {
    background: #2979ff;
}

/* 表单样式 */
.login-form {
    display: block;
}

.login-form.hide {
    display: none;
}

.form-item {
    margin-bottom: 20px;
}

.input-box {
    position: relative;
}

.input-box input {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.input-box input:focus {
    border-color: #2979ff;
    box-shadow: 0 0 0 2px rgba(41,121,255,0.2);
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url(../images/eye.png) no-repeat center;
    background-size: contain;
    cursor: pointer;
}

.error-tip {
    display: none;
    margin-top: 5px;
    color: #ff4d4f;
    font-size: 12px;
}

/* 记住密码和忘记密码 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-pwd {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-pwd input[type="checkbox"] {
    margin-right: 5px;
}

.remember-pwd span {
    font-size: 14px;
    color: #666;
}

.forget-pwd {
    font-size: 14px;
    color: #2979ff;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    height: 40px;
    background: #2979ff;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background: #1565c0;
}

/* 验证码样式 */
.verify-box {
    display: flex;
    gap: 10px;
}

.verify-box .input-box {
    flex: 1;
}

.btn-send-code {
    width: 120px;
    height: 40px;
    background: #fff;
    border: 1px solid #2979ff;
    border-radius: 4px;
    color: #2979ff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-send-code:hover {
    background: #2979ff;
    color: #fff;
}

.btn-send-code.disabled {
    background: #f5f5f5;
    border-color: #d9d9d9;
    color: #999;
    cursor: not-allowed;
}

/* 注册链接 */
.register-link {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.register-link a {
    color: #2979ff;
}

/* 其他登录方式 */
.other-login {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.other-login .line {
    display: inline-block;
    width: 80px;
    height: 1px;
    background: #e5e5e5;
    vertical-align: middle;
}

.other-login .text {
    margin: 0 15px;
    color: #999;
    font-size: 12px;
}

.login-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.method-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
}

.method-item i {
    font-size: 24px;
    margin-bottom: 5px;
}

.method-item span {
    font-size: 12px;
}

/* 错误状态 */
.form-item.error .input-box input {
    border-color: #ff4d4f;
}

.form-item.error .error-tip {
    display: block;
} 