<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>登录 - 授权验证管理平台</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <style>
        body {
            background-color: #f2f2f2;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
        }
        .login-container {
            width: 360px;
            padding: 30px;
            background-color: #fff;
            border-radius: 4px;
            box-shadow: 0 2px 10px rgba(0,0,0,.1);
        }
        .login-title {
            text-align: center;
            margin-bottom: 30px;
            color: #333;
            font-size: 24px;
            font-weight: 500;
        }
        .login-form {
            margin-top: 20px;
        }
        .captcha-container {
            display: flex;
            align-items: center;
        }
        .captcha-input {
            flex: 1;
            margin-right: 10px;
        }
        .captcha-img {
            height: 38px;
            cursor: pointer;
        }
        .layui-form-item {
            margin-bottom: 20px;
        }
        .layui-input {
            border-radius: 2px;
        }
        .layui-btn {
            width: 100%;
            border-radius: 2px;
        }
    </style>
</head>
<body>
    <div class="login-container">
        <h2 class="login-title">授权验证管理平台</h2>
        <form class="layui-form login-form">
            <div class="layui-form-item">
                <div class="layui-input-block" style="margin-left: 0;">
                    <input type="text" name="username" required lay-verify="required" 
                        placeholder="请输入用户名" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block" style="margin-left: 0;">
                    <input type="password" name="password" required lay-verify="required" 
                        placeholder="请输入密码" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block captcha-container" style="margin-left: 0;">
                    <input type="text" name="captcha" required lay-verify="required" 
                        placeholder="请输入验证码" autocomplete="off" class="layui-input captcha-input">
                    <img id="captchaImg" class="captcha-img" alt="验证码">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block" style="margin-left: 0;">
                    <button class="layui-btn layui-btn-normal" lay-submit lay-filter="login">登录</button>
                </div>
            </div>
        </form>
    </div>
    <script src="/static/layui/layui.js"></script>
    <script src="/static/js/login.js"></script>
</body>
</html> 