password.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. html,
  6. body {
  7. width: 100%;
  8. height: 100%;
  9. }
  10. body {
  11. box-sizing: border-box;
  12. -moz-osx-font-smoothing: grayscale;
  13. -webkit-font-smoothing: antialiased;
  14. text-rendering: optimizeLegibility;
  15. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  16. background-color: #FFFFFF;
  17. }
  18. *,
  19. *::before,
  20. *::after {
  21. box-sizing: inherit;
  22. }
  23. a {
  24. border: none;
  25. outline: none;
  26. text-decoration: none;
  27. -webkit-touch-callout: none;
  28. -webkit-tap-highlight-color: transparent;
  29. }
  30. .c-login {
  31. display: flex;
  32. justify-content: center;
  33. align-items: center;
  34. min-height: 100%;
  35. width: 100%;
  36. }
  37. .c-login__main {
  38. flex: 1 0 auto;
  39. }
  40. .c-login-form {
  41. display: inline-flex;
  42. flex-direction: column;
  43. justify-content: center;
  44. align-items: center;
  45. padding: 0 0 40px;
  46. overflow: auto;
  47. }
  48. .c-login-form__header {
  49. color: #1C5CB0;
  50. font-size: 28px;
  51. font-weight: bold;
  52. text-align: center;
  53. }
  54. .c-login-form__tip {
  55. padding: 20px;
  56. height: 60px;
  57. }
  58. .c-login-form__tip .success {
  59. color: #67C23A;
  60. }
  61. .c-login-form__tip .warning {
  62. color: #E6A23C;
  63. }
  64. .c-login-form__tip .error {
  65. color: #F56C6C;
  66. }
  67. .c-login-form__tip .info {
  68. color: #409EFF;
  69. }
  70. .c-login-form__section {
  71. display: flex;
  72. flex-direction: column;
  73. align-items: center;
  74. }
  75. .c-login-form__wrapper {
  76. display: flex;
  77. align-items: center;
  78. }
  79. .c-login-form__label {
  80. width: 150px;
  81. margin-right: 20px;
  82. color: #333333;
  83. font-size: 16px;
  84. text-align: right;
  85. }
  86. .c-login-form__label::before {
  87. content: "*";
  88. color: #FF0000;
  89. font-size: 14px;
  90. }
  91. .c-login-form__input {
  92. padding: 0 10px;
  93. width: 320px;
  94. height: 30px;
  95. font-size: 14px;
  96. line-height: 30px;
  97. border: 1px solid #C4C4C4;
  98. outline: none;
  99. }
  100. .c-login-form__input.password {
  101. -webkit-text-security: disc;
  102. }
  103. .c-login-form__error {
  104. display: inline-block;
  105. width: 320px;
  106. height: 30px;
  107. margin-left: 170px;
  108. color: #F56C6C;
  109. font-size: 12px;
  110. line-height: 24px;
  111. white-space: nowrap;
  112. }
  113. .c-login-form__submit {
  114. display: inline-flex;
  115. justify-content: center;
  116. align-items: center;
  117. height: 40px;
  118. padding: 0 40px;
  119. margin-top: 60px;
  120. color: #ffffff;
  121. font-size: 18px;
  122. border: none;
  123. background-color: #1C5CB0;
  124. border-radius: 8px;
  125. cursor: pointer;
  126. }
  127. .c-login-form__submit[disabled] {
  128. background-color: #C4C4C4;
  129. }