You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

277 lines
7.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>cmux-remote</title>
<link rel="manifest" href="/manifest.json">
<meta name="theme-color" content="#0b0b13">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="stylesheet" href="/css/themes.css">
<style>
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
margin: 0;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg-primary);
color: var(--text-primary);
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
overflow: hidden;
}
/* Animated background */
.bg {
position: fixed;
inset: 0;
z-index: 0;
overflow: hidden;
}
.bg-orb {
position: absolute;
border-radius: 50%;
filter: blur(80px);
opacity: 0.35;
}
.bg-orb-1 {
width: 500px; height: 500px;
background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
top: -20%; left: -10%;
animation: orb-drift 18s ease-in-out infinite alternate;
}
.bg-orb-2 {
width: 400px; height: 400px;
background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
bottom: -15%; right: -5%;
animation: orb-drift 22s ease-in-out infinite alternate-reverse;
}
.bg-orb-3 {
width: 300px; height: 300px;
background: radial-gradient(circle, #22d3ee 0%, transparent 70%);
top: 40%; left: 50%;
transform: translate(-50%, -50%);
animation: orb-drift 15s ease-in-out infinite alternate;
opacity: 0.15;
}
@keyframes orb-drift {
from { transform: translate(0, 0) scale(1); }
to { transform: translate(40px, 30px) scale(1.08); }
}
/* Grid overlay */
.bg::after {
content: '';
position: absolute;
inset: 0;
background-image:
linear-gradient(var(--border-subtle) 1px, transparent 1px),
linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
background-size: 48px 48px;
mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
-webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
/* Card */
.login-card {
position: relative;
z-index: 1;
width: 92%;
max-width: 360px;
padding: 2.25rem 2rem;
background: var(--bg-glass);
backdrop-filter: blur(32px);
-webkit-backdrop-filter: blur(32px);
border-radius: var(--radius-lg);
border: 1px solid var(--border-strong);
box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-subtle) inset;
animation: card-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
/* Shine edge on card */
.login-card::before {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%);
pointer-events: none;
}
@keyframes card-in {
from { opacity: 0; transform: translateY(20px) scale(0.97); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
/* Logo */
.logo {
width: 44px;
height: 44px;
border-radius: var(--radius-md);
background: var(--accent-gradient);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1.4rem;
box-shadow: 0 4px 20px var(--accent-glow);
position: relative;
}
.logo::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
}
.logo svg {
width: 22px;
height: 22px;
color: #fff;
position: relative;
z-index: 1;
}
h1 {
margin: 0 0 0.3rem;
font-size: 1.4rem;
font-weight: 700;
letter-spacing: -0.025em;
background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.subtitle {
color: var(--text-secondary);
margin: 0 0 1.8rem;
font-size: 0.85rem;
line-height: 1.55;
}
label {
display: block;
font-size: 0.72rem;
font-weight: 700;
color: var(--text-dimmed);
margin-bottom: 0.5rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
input[type="password"] {
width: 100%;
padding: 0.8rem 1rem;
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
background: rgba(0,0,0,0.2);
color: var(--text-primary);
font-size: 0.95rem;
outline: none;
transition: border-color 120ms ease, box-shadow 120ms ease;
font-family: inherit;
}
[data-theme="light"] input[type="password"] {
background: rgba(255,255,255,0.7);
}
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]) input[type="password"] {
background: rgba(255,255,255,0.7);
}
}
input[type="password"]:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
input[type="password"]::placeholder {
color: var(--text-dimmed);
}
button[type="submit"] {
width: 100%;
padding: 0.82rem;
margin-top: 1.1rem;
border: none;
border-radius: var(--radius-sm);
background: var(--accent-gradient);
color: #fff;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
transition: opacity 120ms ease, transform 120ms ease, box-shadow 120ms ease;
box-shadow: 0 2px 10px var(--accent-glow);
letter-spacing: 0.01em;
position: relative;
overflow: hidden;
}
button[type="submit"]::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
}
button[type="submit"]:hover {
box-shadow: 0 4px 20px var(--accent-glow);
transform: translateY(-1px);
}
button[type="submit"]:active {
transform: scale(0.98);
box-shadow: 0 1px 6px var(--accent-glow);
}
.error {
color: var(--red);
font-size: 0.82rem;
margin-top: 0.9rem;
display: none;
padding: 0.55rem 0.85rem;
background: var(--red-glow);
border-radius: var(--radius-sm);
border: 1px solid rgba(248, 113, 113, 0.12);
}
.error.visible { display: block; }
button[type="submit"]:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
.bg-orb, .login-card { animation: none !important; }
}
</style>
</head>
<body>
<div class="bg">
<div class="bg-orb bg-orb-1"></div>
<div class="bg-orb bg-orb-2"></div>
<div class="bg-orb bg-orb-3"></div>
</div>
<div class="login-card">
<div class="logo">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="4 17 10 11 4 5"></polyline>
<line x1="12" y1="19" x2="20" y2="19"></line>
</svg>
</div>
<h1>cmux-remote</h1>
<p class="subtitle">Connect to your terminal session</p>
<form id="login-form">
<label for="password">Password</label>
<input type="password" id="password" placeholder="••••••••" autocomplete="current-password" autofocus>
<button type="submit">Connect</button>
<p class="error" id="error"></p>
</form>
</div>
<script src="/js/auth.js"></script>
</body>
</html>