|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="zh-CN"> |
| 3 | +<head> |
| 4 | +<meta charset="UTF-8"> |
| 5 | +<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | +<title>cftunnel - 访问验证</title> |
| 7 | +<style> |
| 8 | +*{margin:0;padding:0;box-sizing:border-box} |
| 9 | +body{ |
| 10 | + min-height:100vh;display:flex;align-items:center;justify-content:center; |
| 11 | + background:#06060b; |
| 12 | + font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; |
| 13 | + color:#e0e0e0; |
| 14 | +} |
| 15 | +.card{ |
| 16 | + background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08); |
| 17 | + border-radius:16px;padding:40px;width:380px; |
| 18 | + backdrop-filter:blur(20px);box-shadow:0 8px 32px rgba(0,0,0,.4); |
| 19 | + position:relative;overflow:hidden; |
| 20 | +} |
| 21 | +.card::before{ |
| 22 | + content:'';position:absolute;top:0;left:0;right:0;height:1px; |
| 23 | + background:linear-gradient(90deg,transparent,rgba(255,255,255,.1),transparent); |
| 24 | +} |
| 25 | +.logo{text-align:center;margin-bottom:8px;font-size:22px;font-weight:800} |
| 26 | +.logo span{background:linear-gradient(135deg,#60a5fa,#22c55e);-webkit-background-clip:text;-webkit-text-fill-color:transparent} |
| 27 | +.subtitle{text-align:center;color:#7a7a95;font-size:14px;margin-bottom:32px} |
| 28 | +.field{margin-bottom:16px} |
| 29 | +.field label{display:block;font-size:13px;color:#7a7a95;margin-bottom:6px;font-weight:500} |
| 30 | +.field input{ |
| 31 | + width:100%;padding:11px 14px; |
| 32 | + background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1); |
| 33 | + border-radius:10px;color:#fff;font-size:15px; |
| 34 | + outline:none;transition:border-color .2s; |
| 35 | +} |
| 36 | +.field input:focus{border-color:#3b82f6} |
| 37 | +.btn{ |
| 38 | + width:100%;padding:12px;margin-top:8px; |
| 39 | + background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none; |
| 40 | + border-radius:10px;font-size:15px;font-weight:600; |
| 41 | + cursor:pointer;transition:all .2s; |
| 42 | +} |
| 43 | +.btn:hover{box-shadow:0 4px 20px rgba(59,130,246,.3);transform:translateY(-1px)} |
| 44 | +.error{ |
| 45 | + background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.25); |
| 46 | + color:#f87171;padding:10px 14px;border-radius:8px;font-size:13px; |
| 47 | + margin-bottom:16px;display:none;text-align:center; |
| 48 | +} |
| 49 | +.footer{text-align:center;margin-top:24px;font-size:12px;color:#50506a} |
| 50 | +</style> |
| 51 | +</head> |
| 52 | +<body> |
| 53 | +<div class="card"> |
| 54 | + <div class="logo">cf<span>tunnel</span></div> |
| 55 | + <div class="subtitle">此服务需要身份验证</div> |
| 56 | + <div class="error" id="err">用户名或密码错误</div> |
| 57 | + <form method="POST" action="/___auth/login"> |
| 58 | + <div class="field"> |
| 59 | + <label for="u">用户名</label> |
| 60 | + <input type="text" id="u" name="username" autocomplete="username" required autofocus> |
| 61 | + </div> |
| 62 | + <div class="field"> |
| 63 | + <label for="p">密码</label> |
| 64 | + <input type="password" id="p" name="password" autocomplete="current-password" required> |
| 65 | + </div> |
| 66 | + <button type="submit" class="btn">登 录</button> |
| 67 | + </form> |
| 68 | + <div class="footer">Powered by <a href="https://cftunnel.qt.cool" target="_blank" style="color:#7a7a95;text-decoration:underline;text-underline-offset:2px">cftunnel</a></div> |
| 69 | +</div> |
| 70 | +<script> |
| 71 | +if(new URLSearchParams(location.search).has('error'))document.getElementById('err').style.display='block'; |
| 72 | +</script> |
| 73 | +</body> |
| 74 | +</html> |
0 commit comments