admin.wxss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* 整体容器 */
  2. .container {
  3. display: flex;
  4. flex-direction: column;
  5. justify-content: center;
  6. align-items: center;
  7. height: 550px;
  8. background-size: cover;
  9. position: relative; /* 确保背景图在表单之下 */
  10. }
  11. /* 背景图片 */
  12. .background-image {
  13. position: absolute;
  14. top: 0;
  15. left: 0;
  16. width: 100%;
  17. height: 100%;
  18. object-fit: cover;
  19. z-index: -1; /* 将背景图置于底层 */
  20. }
  21. /* 表单容器 */
  22. .form-container {
  23. display: flex;
  24. flex-direction: column;
  25. align-items: center; /* 水平居中 */
  26. justify-content: center; /* 垂直居中,如果需要的话 */
  27. width: 90%;
  28. max-width: 400px;
  29. padding: 20px;
  30. border-radius: 10px;
  31. box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
  32. background-color: rgba(255, 255, 255, 0.8); /* 半透明背景 */
  33. }
  34. /* 欢迎语 */
  35. .welcome-message {
  36. font-size: 20px;
  37. text-align: center; /* 文本内部居中 */
  38. margin-bottom: 20px;
  39. }
  40. /* 输入框 */
  41. .input {
  42. width: 90%;
  43. margin-bottom: 10px;
  44. padding: 10px;
  45. border: 1px solid #ccc;
  46. border-radius: 5px;
  47. font-size: 16px;
  48. }
  49. /* 登录按钮 */
  50. .btn {
  51. width: 100%;
  52. padding: 10px;
  53. color: white;
  54. background-color: #3EC01E;
  55. border: none;
  56. border-radius: 5px;
  57. transition: background-color .3s;
  58. }
  59. .btn:hover {
  60. background-color: #179414;
  61. }
  62. /* 错误消息 */
  63. .error {
  64. color: red;
  65. text-align: center;
  66. margin-top: 10px;
  67. }