h5+css 高级登录页面

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Advanced Login</title>

    <style>

        body {

            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

            background-color: #1a1a1a;

            margin: 0;

            display: flex;

            justify-content: center;

            align-items: center;

            height: 100vh;

        }



        .login-container {

            background-color: #fff;

            box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);

            padding: 40px;

            border-radius: 8px;

            width: 400px;

            text-align: center;

            position: relative;

        }



        h1 {

            color: #333;

            font-size: 24px;

            margin-bottom: 20px;

        }



        input {

            width: calc(100% - 20px);

            padding: 15px 10px;

            margin: 10px 0;

            box-sizing: border-box;

            border: none;

            border-bottom: 2px solid #3498db;

            background-color: transparent;

            color: #333;

            font-size: 16px;

            outline: none;

        }



        input:focus {

            border-bottom-color: #e74c3c;

        }



        button {

            background-color: #3498db;

            color: #fff;

            padding: 15px 20px;

            border: none;

            border-radius: 4px;

            cursor: pointer;

            font-size: 16px;

            transition: background-color 0.3s;

        }



        button:hover {

            background-color: #2980b9;

        }



        .bg-shapes {

            position: absolute;

            top: 0;

            left: 0;

            width: 100%;

            height: 100%;

            overflow: hidden;

            z-index: -1;

        }



        .circle {

            position: absolute;

            border-radius: 50%;

            background-color: rgba(255, 255, 255, 0.1);

            animation: moveCircle 15s linear infinite;

        }



        @keyframes moveCircle {

            0% {

                transform: translate(-50%, -50%) rotate(0deg);

            }

            100% {

                transform: translate(-50%, -50%) rotate(360deg);

            }

        }

    </style>

</head>

<body>

    <div class="bg-shapes">

        <!-- Animated circles for background -->

        <div class="circle" style="width: 200px; height: 200px; top: 20%; left: 10%;"></div>

        <div class="circle" style="width: 150px; height: 150px; top: 70%; left: 70%;"></div>

    </div>



    <div class="login-container">

        <h1>Advanced Login</h1>

        <form action="/login" method="post">

            <input type="text" name="username" placeholder="Username" required>

            <input type="password" name="password" placeholder="Password" required>

            <button type="submit">Login</button>

        </form>

    </div>

</body>

</html>

  • 12
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值