login.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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: #F4F7FB;
  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. min-height: 100%;
  33. width: 100%;
  34. }
  35. .c-login__img {
  36. flex: 1 1 400px;
  37. display: inline-block;
  38. background: url("../img/illustration.png") 50% 50%/757px 613px no-repeat;
  39. }
  40. .c-login__main {
  41. flex: 1 0 auto;
  42. }
  43. @media screen and (max-width: 900px) {
  44. .c-login__img {
  45. display: none;
  46. }
  47. }
  48. .c-login-form {
  49. display: inline-flex;
  50. flex-direction: column;
  51. justify-content: center;
  52. align-items: center;
  53. padding: 40px 0 80px;
  54. background-color: #FFFFFF;
  55. overflow: auto;
  56. }
  57. .c-login-form__header {
  58. display: inline-flex;
  59. align-items: center;
  60. }
  61. .c-login-form__logo {
  62. display: inline-block;
  63. width: 142px;
  64. height: 36px;
  65. background: url("../img/logo.png") 0 0/100% 100% no-repeat;
  66. }
  67. .c-login-form__name {
  68. padding-left: 10px;
  69. color: #1C5CB0;
  70. font-size: 28px;
  71. font-weight: bold;
  72. line-height: 1;
  73. }
  74. .c-login-form__tip {
  75. padding: 20px;
  76. height: 100px;
  77. }
  78. .c-login-form__tip .success {
  79. color: #67C23A;
  80. }
  81. .c-login-form__tip .warning {
  82. color: #E6A23C;
  83. }
  84. .c-login-form__tip .error {
  85. color: #F56C6C;
  86. }
  87. .c-login-form__tip .info {
  88. color: #409EFF;
  89. }
  90. .c-login-form__wrapper {
  91. display: inline-flex;
  92. flex-direction: column;
  93. color: #C4C4C4;
  94. }
  95. .c-login-form__error {
  96. height: 30px;
  97. color: #F56C6C;
  98. font-size: 12px;
  99. line-height: 24px;
  100. white-space: nowrap;
  101. }
  102. .c-login-form__label {
  103. font-size: 24px;
  104. line-height: 1;
  105. }
  106. .c-login-form__section {
  107. display: inline-flex;
  108. align-items: center;
  109. padding: 8px 0 2px;
  110. border-bottom: 1px solid currentColor;
  111. }
  112. .c-login-form__input {
  113. width: 320px;
  114. height: 30px;
  115. font-size: 18px;
  116. line-height: 30px;
  117. border: none;
  118. outline: none;
  119. }
  120. .c-login-form__input.password {
  121. -webkit-text-security: disc;
  122. }
  123. .c-login-form__icon {
  124. display: inline-block;
  125. margin-left: 10px;
  126. width: 30px;
  127. height: 30px;
  128. background-position: 0 0;
  129. background-size: 100% 100%;
  130. background-repeat: no-repeat;
  131. }
  132. .c-login-form__icon.user {
  133. background-image: url("../img/icon_user.png");
  134. }
  135. .c-login-form__icon.lock {
  136. background-image: url("../img/icon_lock.png");
  137. }
  138. .c-login-form__submit {
  139. display: inline-flex;
  140. justify-content: center;
  141. align-items: center;
  142. width: 360px;
  143. height: 40px;
  144. margin-top: 50px;
  145. color: #ffffff;
  146. font-size: 18px;
  147. border: none;
  148. background-color: #1C5CB0;
  149. border-radius: 8px;
  150. cursor: pointer;
  151. }
  152. .c-login-form__submit[disabled] {
  153. background-color: #C4C4C4;
  154. }