totp.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. $blue: #1C5CB0;
  2. $gray: #C4C4C4;
  3. $black: #333333;
  4. * {
  5. margin: 0;
  6. padding: 0;
  7. }
  8. html,
  9. body {
  10. width: 100%;
  11. height: 100%;
  12. }
  13. body {
  14. box-sizing: border-box;
  15. -moz-osx-font-smoothing: grayscale;
  16. -webkit-font-smoothing: antialiased;
  17. text-rendering: optimizeLegibility;
  18. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  19. background-color: #F4F7FB;
  20. }
  21. *,
  22. *::before,
  23. *::after {
  24. box-sizing: inherit;
  25. }
  26. a {
  27. border: none;
  28. outline: none;
  29. text-decoration: none;
  30. -webkit-touch-callout: none;
  31. -webkit-tap-highlight-color: transparent;
  32. }
  33. .c-login {
  34. display: flex;
  35. min-height: 100%;
  36. width: 100%;
  37. &__img {
  38. flex: 1 1 0;
  39. display: inline-block;
  40. background: url('../img/illustration.png') 50% 50% / 757px 613px no-repeat;
  41. }
  42. &__main {
  43. flex: 1 1 0;
  44. }
  45. }
  46. @media screen and (max-width: 900px) {
  47. .c-login__img {
  48. display: none;
  49. }
  50. }
  51. .c-login-form {
  52. display: inline-flex;
  53. flex-direction: column;
  54. justify-content: center;
  55. align-items: center;
  56. padding: 40px 0 80px;
  57. background-color: #FFFFFF;
  58. overflow: auto;
  59. &__header {
  60. display: inline-flex;
  61. align-items: center;
  62. }
  63. &__logo {
  64. display: inline-block;
  65. width: 142px;
  66. height: 36px;
  67. background: url('../img/logo.png') 0 0 / 100% 100% no-repeat;
  68. }
  69. &__name {
  70. padding-left: 10px;
  71. color: $blue;
  72. font-size: 28px;
  73. font-weight: bold;
  74. line-height: 1;
  75. }
  76. &__title {
  77. padding: 60px 0 40px;
  78. color: $blue;
  79. font-size: 18px;
  80. font-weight: bold;
  81. }
  82. &__info {
  83. width: 400px;
  84. color: $black;
  85. font-size: 16px;
  86. line-height: 20px;
  87. p {
  88. line-height: 24px;
  89. }
  90. }
  91. &__qr {
  92. max-width: 150px;
  93. max-height: 150px;
  94. }
  95. &__retry {
  96. color: $blue;
  97. font-size: 12px;
  98. }
  99. &__required {
  100. color: #EF1D1D;
  101. ::before {
  102. content: '*';
  103. color: #FF0000;
  104. font-size: 14px;
  105. }
  106. }
  107. &__input {
  108. padding: 0 10px;
  109. margin-top: 6px;
  110. width: 240px;
  111. height: 30px;
  112. font-size: 14px;
  113. line-height: 30px;
  114. border: 1px solid $gray;
  115. outline: none;
  116. }
  117. &__error {
  118. height: 30px;
  119. color: #F56C6C;
  120. font-size: 12px;
  121. line-height: 24px;
  122. white-space: nowrap;
  123. }
  124. &__submit {
  125. display: inline-flex;
  126. justify-content: center;
  127. align-items: center;
  128. height: 40px;
  129. padding: 0 40px;
  130. color: #ffffff;
  131. font-size: 18px;
  132. border: none;
  133. background-color: $blue;
  134. border-radius: 8px;
  135. cursor: pointer;
  136. &[disabled] {
  137. background-color: $gray;
  138. }
  139. }
  140. }