137 lines
2.2 KiB
CSS
137 lines
2.2 KiB
CSS
/* Reset some default styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Body & Page background */
|
|
body {
|
|
font-family: 'Arial', sans-serif;
|
|
background: linear-gradient(135deg, #70ff88, #e6d05f); /* 美丽的渐变背景 */
|
|
height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.login-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
width: 40%;
|
|
}
|
|
|
|
.login-card {
|
|
background-color: white;
|
|
padding: 40px;
|
|
border-radius: 15px;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
|
width: 100%;
|
|
max-width: 500px;
|
|
text-align: center;
|
|
}
|
|
|
|
.login-title {
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
color: #333;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.login-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.input-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.input-group label {
|
|
font-size: 14px;
|
|
color: #555;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.input-group input {
|
|
width: 100%;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
border: 1px solid #ddd;
|
|
font-size: 16px;
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
.input-group input:focus {
|
|
border-color: #2575fc;
|
|
outline: none;
|
|
}
|
|
|
|
.login-btn {
|
|
background-color: #2575fc;
|
|
color: white;
|
|
padding: 14px;
|
|
font-size: 16px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.login-btn:hover {
|
|
background-color: #6a11cb;
|
|
}
|
|
|
|
.forgot-password {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.forgot-password a {
|
|
color: #2575fc;
|
|
font-size: 14px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.forgot-password a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.social-login {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.social-btn {
|
|
width: 100%;
|
|
padding: 12px;
|
|
margin: 5px 0;
|
|
font-size: 16px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.social-btn.google {
|
|
background-color: #db4437;
|
|
color: white;
|
|
}
|
|
|
|
.social-btn.google:hover {
|
|
background-color: #c1351d;
|
|
}
|
|
|
|
.social-btn.facebook {
|
|
background-color: #3b5998;
|
|
color: white;
|
|
}
|
|
|
|
.social-btn.facebook:hover {
|
|
background-color: #2d4373;
|
|
}
|