Files
leaudit-platform-frontend/app/styles/pages/login.css
T

170 lines
2.9 KiB
CSS

/* 登录页面样式 */
.login-page {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-image: url('/images/登录页背景-min.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.login-container {
width: 100%;
max-width: 480px;
padding: 2rem;
background-color: white;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.login-header {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 2rem;
}
.login-logo {
height: 60px;
margin-bottom: 1rem;
}
.login-title {
font-size: 1.5rem;
font-weight: 600;
color: #015c42;
text-align: center;
}
.login-subtitle {
font-size: 1.25rem;
font-weight: 500;
color: #333;
margin-bottom: 1.5rem;
text-align: center;
}
.login-form-container {
margin-bottom: 2rem;
}
.login-form {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
/* 优化的错误提示样式 */
.error-message-container {
display: flex;
align-items: center;
padding: 0.75rem 1rem;
background-color: #fef2f2;
border: 1px solid #fee2e2;
border-radius: 6px;
animation: fadeIn 0.3s ease-in-out;
}
.error-icon {
color: #ef4444;
font-size: 1.25rem;
margin-right: 0.75rem;
display: flex;
align-items: center;
}
.error-text {
color: #b91c1c;
font-size: 0.875rem;
font-weight: 500;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.form-group label {
font-size: 0.875rem;
font-weight: 500;
color: #555;
}
.form-input {
padding: 0.75rem 1rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
transition: border-color 0.2s;
}
.form-input:focus {
border-color: #2cad7d;
outline: none;
box-shadow: 0 0 0 2px rgba(44, 173, 125, 0.2);
}
/* 密码输入框容器样式 */
.password-input-container {
position: relative;
display: flex;
align-items: center;
}
.password-input {
padding-right: 3rem; /* 为眼睛图标留出空间 */
}
.password-toggle-btn {
position: absolute;
right: 0.75rem;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
padding: 0.25rem;
color: #666;
font-size: 1.25rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: color 0.2s, background-color 0.2s;
}
.password-toggle-btn:hover {
color: #2cad7d;
}
.login-button {
margin-top: 1rem;
padding: 0.75rem 1.5rem;
background-color: #2cad7d;
color: white;
border: none;
border-radius: 4px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s;
}
.login-button:hover {
background-color: #1e9668;
}
.login-footer {
text-align: center;
font-size: 0.875rem;
color: #777;
}