Files
stock/stock-html/static/css/auth.css
T
freedakgmail 9c7d7abdd4 Initial commit
2026-07-17 18:49:35 +08:00

267 lines
4.6 KiB
CSS

/* ═══════════════════════════════════════
auth.css - Login and registration styles
Lines: 261
═══════════════════════════════════════ */
/* ========== 登录相关样式 ========== */
.title-bar {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 24px;
}
.title-bar h1 {
margin-bottom: 0;
}
.user-info {
display: flex;
align-items: center;
gap: 10px;
}
.username {
color: var(--text-secondary);
font-size: 13px;
}
.login-btn, .logout-btn {
padding: 6px 14px;
border-radius: 8px;
font-size: 13px;
cursor: pointer;
border: none;
transition: all 0.2s;
}
.login-btn {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
color: var(--bg-dark);
}
.logout-btn {
background: rgba(255, 68, 68, 0.2);
color: var(--danger);
}
.login-btn:hover {
transform: scale(1.02);
}
.logout-btn:hover {
background: rgba(255, 68, 68, 0.3);
}
/* 登录弹窗 */
.login-modal {
background: var(--bg-dark);
border: none;
border-radius: 16px;
width: 90%;
max-width: 360px;
overflow: hidden;
}
.login-head.title-bar {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 16px;
border-bottom: 1px solid var(--border-glass);
}
.title-left {
display: flex;
flex-direction: column;
}
.current-model {
font-size: 12px;
color: var(--accent);
margin-top: 4px;
}
.login-header h3 {
font-size: 16px;
font-weight: 600;
}
.login-body {
padding: 20px;
}
.login-field {
margin-bottom: 16px;
}
.login-field label {
display: block;
font-size: 13px;
color: var(--text-secondary);
margin-bottom: 6px;
}
.login-field input {
width: 100%;
padding: 12px 14px;
background: var(--bg-glass);
border: 1px solid var(--border-glass);
border-radius: 10px;
color: var(--text-primary);
font-size: 14px;
outline: none;
transition: border-color 0.2s;
}
.login-field input:focus {
border-color: var(--accent);
}
.login-error {
color: #ff4444;
font-size: 13px;
margin-bottom: 12px;
text-align: center;
}
.login-success {
color: #00ff88;
font-size: 13px;
margin-bottom: 12px;
text-align: center;
}
.login-submit {
width: 100%;
padding: 14px;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
color: var(--bg-dark);
border: none;
border-radius: 10px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.login-submit:hover {
transform: scale(1.01);
}
.login-submit:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.login-switch {
text-align: center;
margin-top: 16px;
font-size: 13px;
color: var(--text-secondary);
}
.login-switch a {
color: var(--accent);
cursor: pointer;
text-decoration: underline;
}
/* 登录选项卡 */
.login-tabs {
display: flex;
border-bottom: 1px solid var(--border-glass);
position: relative;
}
.login-tab {
flex: 1;
padding: 16px;
background: transparent;
border: none;
color: var(--text-secondary);
font-size: 15px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}
.login-tab.active {
color: var(--text-primary);
border-bottom: 2px solid var(--accent);
}
.login-tab:hover {
color: var(--text-primary);
}
.modal-close-btn {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
background: transparent;
border: none;
color: var(--text-muted);
font-size: 24px;
cursor: pointer;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
}
.modal-close-btn:hover {
color: var(--text-primary);
}
/* 登录页面(未登录状态) */
.login-page {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 80vh;
padding: 20px;
}
.login-page-header {
text-align: center;
margin-bottom: 30px;
}
.login-icon {
width: 64px;
height: 64px;
margin-bottom: 16px;
}
.login-page-header h1 {
font-size: 28px;
margin-bottom: 10px;
}
.login-page-header p {
color: var(--text-secondary);
font-size: 14px;
}
.login-modal-inline {
width: 100%;
max-width: 360px;
}
.loading-auth {
display: flex;
align-items: center;
justify-content: center;
min-height: 80vh;
color: var(--text-secondary);
}