login.scss 6.0 KB

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