Add login screen with password protection (oadmin123)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
101
static/style.css
101
static/style.css
@@ -1,5 +1,106 @@
|
||||
/* Outlook 邮件管理器 — 参考小苹果风格 */
|
||||
|
||||
/* ============================================================================
|
||||
登录遮罩
|
||||
============================================================================ */
|
||||
.login-overlay {
|
||||
position: fixed;
|
||||
top: 0; left: 0; width: 100%; height: 100%;
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
backdrop-filter: blur(20px);
|
||||
z-index: 999999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.login-overlay.hidden { display: none; }
|
||||
|
||||
.login-card {
|
||||
text-align: center;
|
||||
padding: 3rem 2.5rem;
|
||||
background: white;
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
|
||||
border: 1px solid rgba(0, 0, 0, 0.04);
|
||||
width: 360px;
|
||||
max-width: 90vw;
|
||||
animation: fadeInUp 0.4s ease;
|
||||
}
|
||||
|
||||
.login-icon {
|
||||
width: 64px; height: 64px;
|
||||
margin: 0 auto 1.2rem;
|
||||
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.08));
|
||||
border-radius: 18px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 28px;
|
||||
color: #667eea;
|
||||
}
|
||||
|
||||
.login-title {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
margin: 0 0 4px;
|
||||
}
|
||||
|
||||
.login-subtitle {
|
||||
font-size: 13px;
|
||||
color: #94a3b8;
|
||||
margin: 0 0 1.5rem;
|
||||
}
|
||||
|
||||
.login-input-wrap {
|
||||
position: relative;
|
||||
margin-bottom: 1.2rem;
|
||||
}
|
||||
|
||||
.login-input-wrap i {
|
||||
position: absolute;
|
||||
left: 14px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: #94a3b8;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.login-input-wrap input {
|
||||
width: 100%;
|
||||
padding: 12px 14px 12px 42px;
|
||||
border: 2px solid #e5e7eb;
|
||||
border-radius: 10px;
|
||||
font-size: 14px;
|
||||
outline: none;
|
||||
transition: all 0.3s ease;
|
||||
color: #334155;
|
||||
}
|
||||
|
||||
.login-input-wrap input:focus {
|
||||
border-color: #667eea;
|
||||
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
||||
}
|
||||
|
||||
.login-btn {
|
||||
width: 100%;
|
||||
height: 44px;
|
||||
font-size: 15px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.login-error {
|
||||
color: #f5576c;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
margin: 0.8rem 0 0;
|
||||
min-height: 20px;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
基础重置
|
||||
============================================================================ */
|
||||
|
||||
Reference in New Issue
Block a user