@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700,800');

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    background: #f6f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    padding: 30px 15px;
    background-image: linear-gradient(
        -225deg,
        #22E1FF 0%,
        #1D8FE1 48%,
        #625EB1 100%
    );
    overflow-x: hidden;
}

h1 {
    font-weight: 700;
    margin: 0 0 8px;
    font-size: 25px;
    line-height: 1.2;
    color: #111;
}

p {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: .1px;
    margin: 8px 0 15px;
}

span {
    font-size: 10px;
    margin-bottom: auto;
}

a {
    text-decoration: none;
}

button {
    border-radius: 10px;
    border: 1px solid #1D8FE1;
    background-color: #1D8FE1;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 12px 25px;
    letter-spacing: .7px;
    text-transform: uppercase;
    transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
    cursor: pointer;
    margin-top: 8px;
}

button:hover {
    background-color: #147dcc;
    box-shadow: 0 7px 18px rgba(29,143,225,.25);
}

button:active {
    transform: scale(.97);
}

button:disabled {
    opacity: .75;
    cursor: wait;
}

form {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 22px 45px;
    height: 100%;
    text-align: center;
}

input,
select,
textarea {
    background-color: #eee;
    border: none;
    border-radius: 4px;
    padding: 11px 14px;
    margin: 5px 0;
    width: 100%;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #333;
    box-shadow:
        rgba(0,0,0,.05) 0 6px 24px 0,
        rgba(0,0,0,.08) 0 0 0 1px;
    transition: background .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
    background-color: #fff;
    box-shadow:
        0 0 0 1px #1D8FE1,
        0 5px 18px rgba(29,143,225,.12);
}

select {
    appearance: none;
    -webkit-appearance: none;
    color: #777;
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 70px;
    line-height: 17px;
}

form > label:not(.consent) {
    width: 100%;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    color: #555;
    margin-top: 6px;
    margin-bottom: 1px;
}

input[type="file"] {
    background-color: #f4f7fa;
    border: 1px dashed #b9c3ce;
    border-radius: 7px;
    padding: 9px;
    cursor: pointer;
    font-size: 10px;
    color: #555;
}

input[type="file"]:hover {
    border-color: #1D8FE1;
    background-color: #f1f9ff;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    width: 100%;
    margin: 8px 0 3px;
    text-align: left;
    line-height: 14px;
    color: #777;
}

.consent input {
    width: 15px;
    min-width: 15px;
    height: 15px;
    margin: 0;
    box-shadow: none;
    cursor: pointer;
}

.consent span {
    font-size: 9px;
    line-height: 14px;
}

.container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow:
        0 14px 28px rgba(0,0,0,.25),
        0 10px 10px rgba(0,0,0,.22);
    position: relative;
    overflow: hidden;
    width: 900px;
    max-width: 100%;
    min-height: 600px;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all .6s ease-in-out;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show .6s;
}

@keyframes show {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform .6s ease-in-out;
    z-index: 100;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: #1D8FE1;
    background: linear-gradient(to right, #1D8FE1, #1D8FE1);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform .6s ease-in-out;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 28px 38px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform .6s ease-in-out;
    overflow-y: auto;
}

.overlay-left {
    transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.overlay-panel h1 {
    color: #fff;
    font-size: 25px;
    margin-bottom: 9px;
}

.overlay-panel p {
    max-width: 340px;
    font-size: 11px;
    line-height: 16px;
    margin: 6px 0;
}

.overlay-panel span {
    font-size: 9px;
    line-height: 14px;
    margin: 5px 0 9px;
}

.overlay-panel > i {
    font-size: 38px;
    margin-bottom: 13px;
    opacity: .95;
}

.jobs {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    max-width: 350px;
    margin: 3px 0 5px;
}

.jobs strong {
    font-size: 10px;
    line-height: 15px;
}

.profile {
    margin-top: 4px !important;
}

.location {
    margin-top: 3px !important;
}

.ghost {
    border: 1px solid #fff;
    border-radius: 22px;
    padding: 9px 20px;
    margin-top: 7px;
    color: #fff;
    cursor: pointer;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: background .2s ease, color .2s ease;
}

.ghost:hover {
    background-color: #fff;
    color: #1D8FE1;
}

.form-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-logo-main {
    margin-bottom: 35px;
}

.form-logo-small {
    margin-bottom: 8px;
}

.form-logo img {
    display: block;
    width: 350px;
    max-width: 75%;
    height: auto;
}

.back-to-info {
    margin-top: 9px;
    color: #1D8FE1;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
}

.back-to-info:hover {
    text-decoration: underline;
}

.status {
    min-height: 15px;
    margin-top: 6px;
    font-size: 9px;
    line-height: 14px;
}

.status.success {
    color: #16834b;
}

.status.error {
    color: #c62828;
}

.button-loading {
    white-space: nowrap;
}

@media screen and (min-width: 1200px) {
    .container {
        width: 920px;
        min-height: 600px;
    }

    .overlay-panel {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media screen and (max-width: 950px) {
    body {
        padding: 20px 12px;
    }

    .container {
        width: 95%;
        min-height: 600px;
    }

    form {
        padding: 22px 28px;
    }

    .overlay-panel {
        padding: 22px;
    }

    .overlay-panel h1 {
        font-size: 22px;
    }

    .overlay-panel p {
        font-size: 10px;
        line-height: 15px;
    }

    .form-logo img {
        width: 190px;
    }
}

@media screen and (max-width: 700px) {
    body {
        min-height: 100vh;
        padding: 12px;
        align-items: center;
        justify-content: center;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .container {
        width: 100%;
        max-width: 500px;
        min-height: 650px;
        height: auto;
        border-radius: 12px;
    }

    .form-container {
        width: 100% !important;
        min-height: 650px;
        height: 100%;
        transition:
            transform .6s ease-in-out,
            opacity .4s ease-in-out;
    }

    .sign-in-container {
        left: 0;
        width: 100% !important;
        z-index: 2;
        transform: translateX(0);
    }

    .container.right-panel-active .sign-in-container {
        transform: translateX(-100%);
    }

    .sign-up-container {
        left: 0;
        width: 100% !important;
        opacity: 0;
        z-index: 1;
        transform: translateX(100%);
    }

    .container.right-panel-active .sign-up-container {
        transform: translateX(0);
        opacity: 1;
        z-index: 5;
        animation: none;
    }

    form {
        width: 100%;
        min-height: 650px;
        padding: 30px 24px;
    }

    .form-logo-main {
        margin-bottom: 7px;
    }

    .form-logo-small {
        margin-bottom: 7px;
    }

    .form-logo img {
        width: 200px;
        max-width: 70%;
    }

    form h1 {
        font-size: 22px;
    }

    form > span {
        font-size: 9px;
        margin-bottom: 8px;
    }

    input,
    select,
    textarea {
        font-size: 11px;
        padding: 12px 13px;
        margin: 5px 0;
    }

    textarea {
        min-height: 90px;
    }

    button {
        width: auto;
        min-width: 180px;
        padding: 12px 20px;
        font-size: 9px;
    }

    input[type="file"] {
        padding: 10px;
        font-size: 9px;
    }

    .overlay-container {
        display: none;
    }
}

@media screen and (max-width: 400px) {
    body {
        padding: 8px;
    }

    .container {
        min-height: 620px;
    }

    .form-container,
    form {
        min-height: 620px;
    }

    form {
        padding: 24px 18px;
    }

    .form-logo img {
        width: 175px;
    }

    form h1 {
        font-size: 20px;
    }

    input,
    select,
    textarea {
        font-size: 10px;
        padding: 11px;
    }

    button {
        width: 100%;
        min-width: 0;
    }

    .consent span {
        font-size: 8px;
        line-height: 12px;
    }
}

@media screen and (max-width: 340px) {
    body {
        padding: 6px;
    }

    .container {
        min-height: 600px;
    }

    .form-container,
    form {
        min-height: 600px;
    }

    form {
        padding: 20px 14px;
    }

    .form-logo img {
        width: 155px;
    }

    form h1 {
        font-size: 18px;
    }

    input,
    select,
    textarea {
        padding: 9px;
        font-size: 9px;
    }

    button {
        padding: 10px 15px;
        font-size: 8px;
    }
}
