password.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. max-height: 100%;
  40. overflow: auto;
  41. }
  42. .c-login-form {
  43. display: inline-flex;
  44. flex-direction: column;
  45. justify-content: center;
  46. align-items: center;
  47. padding: 0 0 40px;
  48. overflow: auto;
  49. }
  50. .c-login-form__header {
  51. color: #1C5CB0;
  52. font-size: 28px;
  53. font-weight: bold;
  54. text-align: center;
  55. }
  56. .c-login-form__tip {
  57. padding: 20px;
  58. height: 60px;
  59. }
  60. .c-login-form__tip .success {
  61. color: #67C23A;
  62. }
  63. .c-login-form__tip .warning {
  64. color: #E6A23C;
  65. }
  66. .c-login-form__tip .error {
  67. color: #F56C6C;
  68. }
  69. .c-login-form__tip .info {
  70. color: #409EFF;
  71. }
  72. .c-login-form__section {
  73. display: flex;
  74. flex-direction: column;
  75. align-items: center;
  76. }
  77. .c-login-form__wrapper {
  78. display: flex;
  79. align-items: center;
  80. }
  81. .c-login-form__label {
  82. width: 150px;
  83. margin-right: 20px;
  84. color: #333333;
  85. font-size: 16px;
  86. text-align: right;
  87. }
  88. .c-login-form__label::before {
  89. content: "*";
  90. color: #FF0000;
  91. font-size: 14px;
  92. }
  93. .c-login-form__input {
  94. padding: 0 10px;
  95. width: 320px;
  96. height: 30px;
  97. font-size: 14px;
  98. line-height: 30px;
  99. border: 1px solid #C4C4C4;
  100. outline: none;
  101. }
  102. .c-login-form__input.password {
  103. -webkit-text-security: disc;
  104. }
  105. .c-login-form__error {
  106. display: inline-block;
  107. width: 320px;
  108. height: 30px;
  109. margin-left: 170px;
  110. color: #F56C6C;
  111. font-size: 12px;
  112. line-height: 24px;
  113. white-space: nowrap;
  114. }
  115. .c-login-form__submit {
  116. display: inline-flex;
  117. justify-content: center;
  118. align-items: center;
  119. height: 40px;
  120. padding: 0 40px;
  121. margin-top: 60px;
  122. color: #ffffff;
  123. font-size: 18px;
  124. border: none;
  125. background-color: #1C5CB0;
  126. border-radius: 8px;
  127. cursor: pointer;
  128. }
  129. .c-login-form__submit[disabled] {
  130. background-color: #C4C4C4;
  131. }