169 lines
3.9 KiB
CSS
169 lines
3.9 KiB
CSS
![]() |
body {
|
||
|
font-family: Arial, sans-serif;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
background-color: #f4f4f4;
|
||
|
color: #333;
|
||
|
line-height: 1.6;
|
||
|
}
|
||
|
|
||
|
.top-bar {
|
||
|
background-color: white;
|
||
|
color: black;
|
||
|
padding: 10px 0;
|
||
|
text-align: left;
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
.top-bar-content {
|
||
|
width: 80%;
|
||
|
margin: 0 auto;
|
||
|
}
|
||
|
|
||
|
.top-bar h2 {
|
||
|
margin: 0;
|
||
|
font-size: 20px;
|
||
|
}
|
||
|
|
||
|
.blue-bar {
|
||
|
height: 5px;
|
||
|
background-color: #007bff;
|
||
|
width: 100%;
|
||
|
position: absolute;
|
||
|
bottom: 0;
|
||
|
}
|
||
|
|
||
|
.auth-container {
|
||
|
background-color: white;
|
||
|
padding: 20px;
|
||
|
border-radius: 8px;
|
||
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||
|
margin: 20px auto;
|
||
|
width: 80%;
|
||
|
max-width: 400px;
|
||
|
}
|
||
|
|
||
|
.auth-header {
|
||
|
text-align: center;
|
||
|
margin-bottom: 20px;
|
||
|
}
|
||
|
|
||
|
.auth-header h1 {
|
||
|
margin: 0;
|
||
|
font-size: 24px;
|
||
|
}
|
||
|
|
||
|
.switch-buttons {
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
margin-top: 10px;
|
||
|
}
|
||
|
|
||
|
.switch-button {
|
||
|
flex: 1;
|
||
|
padding: 10px;
|
||
|
font-size: 14px;
|
||
|
cursor: pointer;
|
||
|
transition: border-color 0.3s, color 0.3s;
|
||
|
background-color: transparent;
|
||
|
border: 1px solid #ccc;
|
||
|
border-radius: 5px;
|
||
|
margin: 0 5px;
|
||
|
text-decoration: none;
|
||
|
color: #333;
|
||
|
}
|
||
|
|
||
|
.switch-button:hover {
|
||
|
border-color: #007bff;
|
||
|
color: #007bff;
|
||
|
}
|
||
|
|
||
|
.form-container {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
.form-container form {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
}
|
||
|
|
||
|
.form-container label {
|
||
|
margin-bottom: 5px;
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
|
||
|
.form-container input {
|
||
|
padding: 10px;
|
||
|
margin-bottom: 15px;
|
||
|
border: 1px solid #ccc;
|
||
|
border-radius: 5px;
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
|
||
|
.form-container button {
|
||
|
padding: 10px;
|
||
|
font-size: 14px;
|
||
|
cursor: pointer;
|
||
|
transition: border-color 0.3s, color 0.3s;
|
||
|
background-color: transparent;
|
||
|
border: 1px solid #ccc;
|
||
|
border-radius: 5px;
|
||
|
color: #333;
|
||
|
}
|
||
|
|
||
|
.form-container button:hover {
|
||
|
border-color: #007bff;
|
||
|
color: #007bff;
|
||
|
}
|
||
|
|
||
|
.terms-container {
|
||
|
margin-top: 10px;
|
||
|
}
|
||
|
|
||
|
.terms-link {
|
||
|
color: #007bff;
|
||
|
text-decoration: none;
|
||
|
}
|
||
|
|
||
|
.terms-link:hover {
|
||
|
text-decoration: underline;
|
||
|
}
|
||
|
|
||
|
/* 模态框样式 */
|
||
|
.modal {
|
||
|
display: none; /* 默认隐藏 */
|
||
|
position: fixed;
|
||
|
z-index: 1000; /* 确保模态框在最上层 */
|
||
|
left: 0;
|
||
|
top: 0;
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
overflow: auto;
|
||
|
background-color: rgba(0, 0, 0, 0.4); /* 半透明背景 */
|
||
|
}
|
||
|
|
||
|
.modal-content {
|
||
|
background-color: #fefefe;
|
||
|
margin: 15% auto; /* 垂直居中 */
|
||
|
padding: 20px;
|
||
|
border: 1px solid #888;
|
||
|
width: 80%;
|
||
|
max-width: 500px; /* 最大宽度 */
|
||
|
border-radius: 8px;
|
||
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
.close {
|
||
|
color: #aaa;
|
||
|
float: right;
|
||
|
font-size: 28px;
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
.close:hover,
|
||
|
.close:focus {
|
||
|
color: black;
|
||
|
text-decoration: none;
|
||
|
cursor: pointer;
|
||
|
}
|