|
| 1 | +@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800'); |
| 2 | + |
| 3 | + |
| 4 | +* { |
| 5 | + box-sizing: border-box; |
| 6 | +} |
| 7 | + |
| 8 | +body { |
| 9 | + |
| 10 | + background: url(https://img.freepik.com/free-vector/network-mesh-wire-digital-technology-background_1017-27428.jpg?w=2000); |
| 11 | + background-size: 100% 100%; |
| 12 | + background-position: center; |
| 13 | + background-attachment: fixed; |
| 14 | + |
| 15 | + |
| 16 | + display: flex; |
| 17 | + justify-content: center; |
| 18 | + align-items: center; |
| 19 | + flex-direction: column; |
| 20 | + font-family: 'Montserrat', sans-serif; |
| 21 | + height: 100vh; |
| 22 | + margin: -20px 0 50px; |
| 23 | +} |
| 24 | + |
| 25 | +h1 { |
| 26 | + font-weight: bold; |
| 27 | + margin: 0; |
| 28 | +} |
| 29 | + |
| 30 | +h2 { |
| 31 | + text-align: center; |
| 32 | +} |
| 33 | + |
| 34 | +p { |
| 35 | + font-size: 14px; |
| 36 | + font-weight: 100; |
| 37 | + line-height: 20px; |
| 38 | + letter-spacing: 0.5px; |
| 39 | + margin: 20px 0 30px; |
| 40 | +} |
| 41 | + |
| 42 | +span { |
| 43 | + font-size: 12px; |
| 44 | +} |
| 45 | + |
| 46 | +a { |
| 47 | + color: #333; |
| 48 | + font-size: 14px; |
| 49 | + text-decoration: none; |
| 50 | + margin: 15px 0; |
| 51 | +} |
| 52 | + |
| 53 | +button { |
| 54 | + border-radius: 20px; |
| 55 | + border: 1px solid #ADD8E6; |
| 56 | + background-color: #FF4B2B; |
| 57 | + color: #FFFFFF; |
| 58 | + font-size: 12px; |
| 59 | + font-weight: bold; |
| 60 | + padding: 12px 45px; |
| 61 | + letter-spacing: 1px; |
| 62 | + text-transform: uppercase; |
| 63 | + transition: transform 80ms ease-in; |
| 64 | +} |
| 65 | + |
| 66 | +button:active { |
| 67 | + transform: scale(0.95); |
| 68 | +} |
| 69 | + |
| 70 | +button:focus { |
| 71 | + outline: none; |
| 72 | +} |
| 73 | + |
| 74 | +button.ghost { |
| 75 | + background-color: transparent; |
| 76 | + border-color: #FFFFFF; |
| 77 | +} |
| 78 | + |
| 79 | +form { |
| 80 | + background-color: #FFFFFF; |
| 81 | + display: flex; |
| 82 | + align-items: center; |
| 83 | + justify-content: center; |
| 84 | + flex-direction: column; |
| 85 | + padding: 0 50px; |
| 86 | + height: 100%; |
| 87 | + text-align: center; |
| 88 | +} |
| 89 | + |
| 90 | +input { |
| 91 | + background-color: #eee; |
| 92 | + border: none; |
| 93 | + padding: 12px 15px; |
| 94 | + margin: 8px 0; |
| 95 | + width: 100%; |
| 96 | +} |
| 97 | + |
| 98 | +.container { |
| 99 | + background-color: #fff; |
| 100 | + border-radius: 10px; |
| 101 | + box-shadow: 0 14px 28px rgba(0,0,0,0.25), |
| 102 | + 0 10px 10px rgba(0,0,0,0.22); |
| 103 | + position: relative; |
| 104 | + overflow: hidden; |
| 105 | + width: 768px; |
| 106 | + max-width: 100%; |
| 107 | + min-height: 1000px; |
| 108 | +} |
| 109 | + |
| 110 | +.form-container { |
| 111 | + position: absolute; |
| 112 | + top: 0; |
| 113 | + height: 100%; |
| 114 | + transition: all 0.6s ease-in-out; |
| 115 | +} |
| 116 | + |
| 117 | +.sign-in-container { |
| 118 | + left: 0; |
| 119 | + width: 50%; |
| 120 | + z-index: 2; |
| 121 | +} |
| 122 | + |
| 123 | +.container.right-panel-active .sign-in-container { |
| 124 | + transform: translateX(100%); |
| 125 | +} |
| 126 | + |
| 127 | +.sign-up-container { |
| 128 | + left: 0; |
| 129 | + width: 50%; |
| 130 | + opacity: 0; |
| 131 | + z-index: 1; |
| 132 | +} |
| 133 | + |
| 134 | +.container.right-panel-active .sign-up-container { |
| 135 | + transform: translateX(100%); |
| 136 | + opacity: 1; |
| 137 | + z-index: 5; |
| 138 | + animation: show 0.6s; |
| 139 | +} |
| 140 | + |
| 141 | +@keyframes show { |
| 142 | + 0%, 49.99% { |
| 143 | + opacity: 0; |
| 144 | + z-index: 1; |
| 145 | + } |
| 146 | + |
| 147 | + 50%, 100% { |
| 148 | + opacity: 1; |
| 149 | + z-index: 5; |
| 150 | + } |
| 151 | +} |
| 152 | + |
| 153 | +.overlay-container { |
| 154 | + position: absolute; |
| 155 | + top: 0; |
| 156 | + left: 50%; |
| 157 | + width: 50%; |
| 158 | + height: 100%; |
| 159 | + overflow: hidden; |
| 160 | + transition: transform 0.6s ease-in-out; |
| 161 | + z-index: 100; |
| 162 | +} |
| 163 | + |
| 164 | +.container.right-panel-active .overlay-container{ |
| 165 | + transform: translateX(-100%); |
| 166 | +} |
| 167 | + |
| 168 | +.overlay { |
| 169 | + background:palegoldenrod; |
| 170 | + background: -webkit-linear-gradient(to right,#1472be,#76eede); |
| 171 | + background: linear-gradient(to right,#76eede,#1472be); |
| 172 | + background-repeat: no-repeat; |
| 173 | + background-size: cover; |
| 174 | + background-position: 0 0; |
| 175 | + color:; |
| 176 | + position: relative; |
| 177 | + left: -100%; |
| 178 | + height: 100%; |
| 179 | + width: 200%; |
| 180 | + transform: translateX(0); |
| 181 | + transition: transform 0.6s ease-in-out; |
| 182 | +} |
| 183 | + |
| 184 | +.container.right-panel-active .overlay { |
| 185 | + transform: translateX(50%); |
| 186 | +} |
| 187 | + |
| 188 | +.overlay-panel { |
| 189 | + position: absolute; |
| 190 | + display: flex; |
| 191 | + align-items: center; |
| 192 | + justify-content: center; |
| 193 | + flex-direction: column; |
| 194 | + padding: 0 40px; |
| 195 | + text-align: center; |
| 196 | + top: 0; |
| 197 | + height: 100%; |
| 198 | + width: 50%; |
| 199 | + transform: translateX(0); |
| 200 | + transition: transform 0.6s ease-in-out; |
| 201 | +} |
| 202 | + |
| 203 | +.overlay-left { |
| 204 | + transform: translateX(-20%); |
| 205 | +} |
| 206 | + |
| 207 | +.container.right-panel-active .overlay-left { |
| 208 | + transform: translateX(0); |
| 209 | +} |
| 210 | + |
| 211 | +.overlay-right { |
| 212 | + right: 0; |
| 213 | + transform: translateX(0); |
| 214 | +} |
| 215 | + |
| 216 | +.container.right-panel-active .overlay-right { |
| 217 | + transform: translateX(20%); |
| 218 | +} |
| 219 | + |
| 220 | +.social-container { |
| 221 | + margin: 20px 0; |
| 222 | +} |
| 223 | + |
| 224 | +.social-container a { |
| 225 | + border: 1px solid #DDDDDD; |
| 226 | + border-radius: 50%; |
| 227 | + display: inline-flex; |
| 228 | + justify-content: center; |
| 229 | + align-items: center; |
| 230 | + margin: 0 5px; |
| 231 | + height: 40px; |
| 232 | + width: 40px; |
| 233 | +} |
| 234 | + |
| 235 | +footer { |
| 236 | + background-color:black; |
| 237 | + color: #fff; |
| 238 | + font-size: 14px; |
| 239 | + bottom: 0; |
| 240 | + position: fixed; |
| 241 | + left: 0; |
| 242 | + right: 0; |
| 243 | + text-align: center; |
| 244 | + z-index: 999; |
| 245 | +} |
| 246 | + |
| 247 | +footer p { |
| 248 | + margin: 10px 0; |
| 249 | +} |
| 250 | + |
| 251 | +footer i { |
| 252 | + color: yellow; |
| 253 | +} |
| 254 | + |
| 255 | +footer a { |
| 256 | + color: #3c97bf; |
| 257 | + text-decoration: none; |
| 258 | +} |
0 commit comments