76e9774c65
Adds optional admin auth (enabled when DATABASE_URL is set) with session-cookie login, logout, requireAdmin middleware, login UI, and a skippable integration test (TEST_DATABASE_URL required). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
100 lines
1.6 KiB
CSS
100 lines
1.6 KiB
CSS
*, *::before, *::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
background: #0f1117;
|
|
color: #e1e4e8;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.login-container {
|
|
width: 100%;
|
|
max-width: 360px;
|
|
padding: 2.5rem 2rem;
|
|
background: #161b22;
|
|
border: 1px solid #30363d;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.login-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: #f0f6fc;
|
|
text-align: center;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.login-subtitle {
|
|
font-size: 0.875rem;
|
|
color: #8b949e;
|
|
text-align: center;
|
|
margin-bottom: 1.75rem;
|
|
}
|
|
|
|
.login-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
.form-group label {
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: #c9d1d9;
|
|
}
|
|
|
|
.form-group input {
|
|
padding: 0.5rem 0.75rem;
|
|
background: #0d1117;
|
|
border: 1px solid #30363d;
|
|
border-radius: 6px;
|
|
color: #f0f6fc;
|
|
font-size: 0.9375rem;
|
|
outline: none;
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
border-color: #58a6ff;
|
|
}
|
|
|
|
.login-error {
|
|
font-size: 0.8125rem;
|
|
color: #f85149;
|
|
min-height: 1.25rem;
|
|
}
|
|
|
|
.login-btn {
|
|
margin-top: 0.25rem;
|
|
padding: 0.5625rem 1rem;
|
|
background: #238636;
|
|
border: 1px solid #2ea043;
|
|
border-radius: 6px;
|
|
color: #fff;
|
|
font-size: 0.9375rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.login-btn:hover {
|
|
background: #2ea043;
|
|
}
|
|
|
|
.login-btn:active {
|
|
background: #1a7f37;
|
|
}
|