login.css 2.8 KB

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