body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #ffffff; height: 100vh; display: flex; flex-direction: column; align-items: center; } form { background-color: rgba(255, 255, 255, 0.9); padding: 40px; /* 增加内边距 */ border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); width: 100%; max-width: 500px; /* 增大表单框的最大宽度 */ margin: auto; margin-top: 100px; } ul { list-style-type: none; padding: 0; margin: 0; } li { margin-bottom: 20px; } div { display: flex; flex-direction: column; } div div { flex: 1; padding-top: 5px; } input[type="text"], input[type="password"] { width: 100%; padding: 10px; font-size: 16px; border: 1px solid #ccc; border-radius: 5px; } button { width: 100%; padding: 10px; background-color: #1c6cb2; color: white; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; } button:hover { background-color: #155a8c; } .error-message { color: red; font-size: 12px; height: 12px; margin-top: 5px; }