login.scss 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. .login {
  2. background-color: mc('blue', '800');
  3. background-image: url('../svg/login-bg-motif.svg');
  4. background-repeat: repeat;
  5. background-size: 200px;
  6. width: 100%;
  7. height: 100%;
  8. display: flex;
  9. align-items: center;
  10. justify-content: center;
  11. animation: loginBgReveal 20s linear infinite;
  12. @include keyframes(loginBgReveal) {
  13. 0% {
  14. background-position-y: 0;
  15. }
  16. 100% {
  17. background-position-y: -800px;
  18. }
  19. }
  20. &::before {
  21. content: '';
  22. position: absolute;
  23. background-image: url('../svg/login-bg.svg');
  24. background-position: center bottom;
  25. background-size: cover;
  26. top: 0;
  27. left: 0;
  28. width: 100vw;
  29. height: 100vh;
  30. @include until($tablet) {
  31. display: none;
  32. }
  33. }
  34. &::after {
  35. content: '';
  36. position: absolute;
  37. background-image: linear-gradient(to bottom, rgba(mc('blue', '800'), 1) 0%, rgba(mc('blue', '800'), 0) 100%);
  38. top: 0;
  39. left: 0;
  40. width: 100vw;
  41. height: 25vh;
  42. }
  43. &-container {
  44. position: relative;
  45. display: flex;
  46. width: 400px;
  47. align-items: stretch;
  48. box-shadow: 0 14px 28px rgba(0,0,0,0.2);
  49. border-radius: 6px;
  50. animation: zoomIn .5s ease;
  51. &::after {
  52. position: absolute;
  53. top: 1rem;
  54. right: 1rem;
  55. content: " ";
  56. @include spinner(mc('blue', '500'),0.5s,16px);
  57. display: none;
  58. }
  59. &.is-expanded {
  60. width: 650px;
  61. .login-frame {
  62. border-radius: 0 6px 6px 0;
  63. border-left: none;
  64. @include until($tablet) {
  65. border-radius: 0;
  66. }
  67. }
  68. }
  69. &.is-loading::after {
  70. display: block;
  71. }
  72. @include until($tablet) {
  73. width: 100%;
  74. border-radius: 0;
  75. &.is-expanded {
  76. width: 100%;
  77. }
  78. }
  79. }
  80. &-providers {
  81. display: flex;
  82. flex-direction: column;
  83. width: 250px;
  84. border-right: none;
  85. border-radius: 6px 0 0 6px;
  86. z-index: 1;
  87. overflow: hidden;
  88. @include until($tablet) {
  89. width: 50px;
  90. border-radius: 0;
  91. }
  92. button {
  93. flex: 0 1 50px;
  94. padding: 5px 15px;
  95. border: none;
  96. color: #FFF;
  97. // background: linear-gradient(to right, rgba(mc('light-blue', '800'), .7), rgba(mc('light-blue', '800'), 1));
  98. // border-top: 1px solid rgba(mc('light-blue', '900'), .5);
  99. background: linear-gradient(to right, rgba(0,0,0, .5), rgba(0,0,0, .7));
  100. border-top: 1px solid rgba(0,0,0, .2);
  101. font-family: $core-font-standard;
  102. font-weight: 600;
  103. text-align: left;
  104. min-height: 40px;
  105. display: flex;
  106. justify-content: flex-start;
  107. align-items: center;
  108. transition: all .4s ease;
  109. &:focus {
  110. outline: none;
  111. }
  112. @include until($tablet) {
  113. justify-content: center;
  114. }
  115. &:hover {
  116. background-color: rgba(0,0,0, .4);
  117. }
  118. &:first-child {
  119. border-top: none;
  120. &.is-active {
  121. border-top: 1px solid rgba(255,255,255, .5);
  122. }
  123. }
  124. &.is-active {
  125. background-image: linear-gradient(to right, rgba(255,255,255,1) 0%,rgba(255,255,255,.77) 100%);
  126. color: mc('grey', '800');
  127. cursor: default;
  128. &:hover {
  129. background-color: transparent;
  130. }
  131. svg path {
  132. fill: mc('grey', '800');
  133. }
  134. }
  135. i {
  136. margin-right: 10px;
  137. font-size: 16px;
  138. @include until($tablet) {
  139. margin-right: 0;
  140. font-size: 20px;
  141. }
  142. }
  143. svg {
  144. margin-right: 10px;
  145. width: auto;
  146. height: 20px;
  147. max-width: 18px;
  148. max-height: 20px;
  149. path {
  150. fill: #FFF;
  151. }
  152. @include until($tablet) {
  153. margin-right: 0;
  154. font-size: 20px;
  155. }
  156. }
  157. span {
  158. font-weight: 600;
  159. @include until($tablet) {
  160. display: none;
  161. }
  162. }
  163. }
  164. &-fill {
  165. flex: 1 1 0;
  166. background: linear-gradient(to right, rgba(mc('light-blue', '800'), .7), rgba(mc('light-blue', '800'), 1));
  167. }
  168. }
  169. &-frame {
  170. background-image: radial-gradient(circle at top center, rgba(255,255,255,1) 5%,rgba(255,255,255,.6) 100%);
  171. border: 1px solid rgba(255,255,255, .5);
  172. border-radius: 6px;
  173. width: 400px;
  174. padding: 1rem;
  175. color: mc('grey', '700');
  176. display: flex;
  177. justify-content: center;
  178. flex-direction: column;
  179. text-align: center;
  180. @include until($tablet) {
  181. width: 100%;
  182. border-radius: 0;
  183. border: none;
  184. }
  185. h1 {
  186. font-size: 2rem;
  187. font-weight: 600;
  188. color: mc('light-blue', '700');
  189. text-shadow: 1px 1px 0 #FFF;
  190. padding: 0;
  191. margin: 0;
  192. }
  193. h2 {
  194. font-size: 1.5rem;
  195. font-weight: 300;
  196. color: mc('grey', '700');
  197. text-shadow: 1px 1px 0 #FFF;
  198. padding: 0;
  199. margin: 0 0 25px 0;
  200. }
  201. form {
  202. display: flex;
  203. flex-direction: column;
  204. }
  205. input[type=text], input[type=password] {
  206. width: 100%;
  207. border: 1px solid rgba(mc('blue-grey','500'), .5);
  208. border-radius: 3px;
  209. background-color: rgba(255,255,255,.9);
  210. box-shadow: inset 0 0 0 3px rgba(255,255,255, .25);
  211. padding: 0 15px;
  212. height: 40px;
  213. margin: 0 0 10px 0;
  214. color: mc('grey', '700');
  215. font-weight: 600;
  216. font-size: .8rem;
  217. transition: all 0.4s ease;
  218. text-align: center;
  219. &:focus {
  220. outline: none;
  221. border-color: mc('light-blue','500');
  222. background-color: rgba(255,255,255,1);
  223. box-shadow: inset 0 0 8px rgba(mc('light-blue','500'), .5);
  224. color: mc('light-blue', '800');
  225. }
  226. }
  227. .button {
  228. background-image: linear-gradient(to bottom, mc('blue', '400') 0%, mc('blue', '600') 50%, mc('blue', '700') 100%);
  229. background-repeat: no-repeat;
  230. background-size: 100% 200%;
  231. &:hover {
  232. background-position-y: 100%;
  233. }
  234. }
  235. }
  236. &-tfa {
  237. position: relative;
  238. display: flex;
  239. width: 400px;
  240. align-items: stretch;
  241. box-shadow: 0 14px 28px rgba(0,0,0,0.2);
  242. border-radius: 6px;
  243. animation: zoomIn .5s ease;
  244. }
  245. &-copyright {
  246. display: flex;
  247. align-items: center;
  248. justify-content: center;
  249. position: absolute;
  250. left: 0;
  251. bottom: 10vh;
  252. width: 100%;
  253. z-index: 2;
  254. color: mc('grey', '500');
  255. font-weight: 400;
  256. a {
  257. font-weight: 600;
  258. color: mc('blue', '500');
  259. margin-left: .25rem;
  260. @include until($tablet) {
  261. color: mc('blue', '200');
  262. }
  263. }
  264. @include until($tablet) {
  265. color: mc('blue', '50');
  266. }
  267. }
  268. }