devportal2 / templates /views /auth.html
Akay Borana
Complete Android-first UI rebuild with mobile-first design system
81552f4
Raw
History Blame Contribute Delete
3.24 kB
<style>
.auth-screen {
position: fixed; inset: 0;
background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') center/cover;
display: flex; justify-content: center; align-items: center;
z-index: 1000;
}
.auth-scrim { position: absolute; inset: 0; background: radial-gradient(circle, rgba(0,0,0,0.7), rgba(0,0,0,0.95)); }
.auth-card {
position: relative; z-index: 2;
width: calc(100% - 32px); max-width: 380px;
background: var(--panel-bg); backdrop-filter: blur(20px);
border: 1px solid var(--border); border-radius: var(--r-xl);
padding: var(--sp-8) var(--sp-5);
}
.auth-title { text-align: center; margin-bottom: var(--sp-6); }
.auth-title h2 { font-size: 22px; font-weight: 700; margin-bottom: var(--sp-1); }
.auth-title p { font-size: 13px; color: var(--text-2); }
.auth-field { margin-bottom: var(--sp-4); }
.auth-field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.auth-field input {
width: 100%; padding: 14px 16px;
background: rgba(255,255,255,0.04); border: 1px solid var(--border);
border-radius: var(--r-sm); color: var(--text-1);
font-family: var(--font-ui); font-size: 16px;
transition: border-color 0.15s ease;
}
.auth-field input:focus { outline: none; border-color: var(--accent); }
.auth-submit {
width: 100%; padding: 14px;
background: var(--accent); color: var(--accent-text);
border: none; border-radius: var(--r-sm);
font-weight: 600; font-size: 15px; cursor: pointer;
display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
min-height: 52px; transition: transform 0.1s ease;
touch-action: manipulation;
}
.auth-submit:active { transform: scale(0.98); }
.auth-alt { text-align: center; margin-top: var(--sp-4); font-size: 13px; color: var(--text-3); }
.auth-alt a { color: var(--accent); cursor: pointer; font-weight: 600; }
.auth-error { color: var(--error); font-size: 13px; text-align: center; margin-bottom: var(--sp-3); min-height: 20px; }
</style>
<div id="auth-screen" class="auth-screen" role="dialog" aria-label="Login">
<div class="auth-scrim" aria-hidden="true"></div>
<div class="auth-card">
<div class="auth-title">
<h2>Welcome to <span style="color:var(--accent)">DEVPORTAL</span></h2>
<p>Sign in to your workspace</p>
</div>
<form onsubmit="event.preventDefault();handleAuth('login')">
<div class="auth-field">
<label for="auth-username">Username</label>
<input type="text" id="auth-username" autocomplete="username" required>
</div>
<div class="auth-field">
<label for="auth-password">Password</label>
<input type="password" id="auth-password" autocomplete="current-password" required>
</div>
<div id="auth-error" class="auth-error" role="alert"></div>
<button type="submit" class="auth-submit">Sign In <i class="fa-solid fa-arrow-right"></i></button>
<div class="auth-alt">No account? <a onclick="toggleAuthMode('register')">Create one</a></div>
</form>
</div>
</div>