@font-face {
    font-family: SF;
    src: url('/assets/font/SFPRODISPLAYREGULAR.OTF');
}

@font-face {
    font-family: SF;
    src: url('/assets/font/SFPRODISPLAYBOLD.OTF');
    font-weight: 700;
}

:root {
    --color-grey: #8f9aa3;
    --color-primary: #2997f0;
    --color-primary-dark: #0d6fbf;
    --color-text-dark: #031c30;
    --border-radius: 8px;
}

* {
    margin: 0;
    font-family: SF;
}

header {
    position: relative;
    display: flex;
    align-items: center;
    height: 92px;
    padding: 0 50px;
    z-index: 2;
    background-color: #fff;
    box-shadow: 5px 0 5px #45454550;
}

.logo {
    width: 120px;
}

.content {
    display: flex;
    height: 100vh;
    color: var(--color-text-dark);
}

.presentation {
    position: relative;
    flex: 1;
    padding: 50px;
    isolation: isolate;
    background: linear-gradient(70deg, var(--color-primary-dark), var(--color-primary));
}

.presentation::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('/assets/img/login-page/login-page-background.webp') center;
    opacity: 0.1;
    mask-image: linear-gradient(to bottom, #000 50%, transparent);
}

.presentation h2 {
    width: 470px;
    margin-left: -50px;
    padding: 15px 0 15px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 0 100px 100px 0;
    color: var(--color-primary-dark);
    background-color: #fff;
    margin-bottom: 20px;
}

.presentation .trial-duration {
    width: 150px;
    font-size: 14px;
    font-weight: 700;
    line-height: 35px;
    text-align: center;
    border: 1px solid #fff;
    border-radius: 100px;
    color: #fff;
    background-color: #ffffff3f;
    margin-bottom: 30px;
}

.presentation .benefits {
    padding: 0;
    color: #fff;
    margin-bottom: 30px;
}

.presentation .benefits li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.presentation .templates {
    /* For shadow with overflow hidden */
    margin: -10px -10px 0;
    padding: 10px 10px 0;

    display: flex;
    gap: 15px;
    mask-image: linear-gradient(to bottom, #000 50%, transparent);
    overflow: hidden;
}

.presentation .templates img {
    max-width: 100%;
}

.presentation .templates .column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.presentation .templates .column img {
    border-radius: 5px;
    box-shadow: 0 0 10px #0a538f;
}

.sign-up {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 50px;
    z-index: 1;
    text-align: center;
    box-shadow: 0 0 20px #0a538f;
}

.sign-up #wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sign-up h2 {
    font-size: 16px;
    font-weight: 700;
    line-height: 2;
    color: var(--color-primary-dark);
    margin-bottom: 50px;
}

.sign-up h2 span {
    padding: 5px;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(70deg, var(--color-primary-dark), #b829f0);
}

.sign-up form {
    width: 80%;
}

.sign-up form .section-icon {
    display: none;
}

.sign-up form .line {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.sign-up form .line input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--color-grey);
    border-radius: var(--border-radius);
    color: var(--color-text-dark);
}

.sign-up form .line input:focus {
    outline: none;
    border: 1px solid var(--color-primary);
}

#error {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    color: #ff3333;
}

.sign-up form button {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px auto 0;
    padding: 10px 20px;
    color: #fff;
    background-color: var(--color-primary-dark);
    border: none;
    border-radius: 100px;
    cursor: pointer;
}

.sign-up form #loading-spinner {
    display: none;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.sign-up form .consent {
    margin-top: 20px;
    font-size: 12px;
}

.sign-up .login-link {
    margin-top: 20px;
    text-decoration: underline;
    color: var(--color-primary-dark);
    cursor: pointer;
}

#validation-message {
    display: none;
    width: 80%;
    padding: 20px;
    color: #006600;
    background-color: #e2f1fd;
    border-radius: var(--border-radius);
}

@media (width < 768px) {
    header {
        height: 76px;
    }

    .logo {
        width: 100px;
    }

    .content {
        flex-direction: column;
    }

    .presentation {
        padding: 30px;
    }

    .presentation h2 {
        width: auto;
        font-size: 12px;
    }

    .presentation .trial-duration {
        font-size: 12px;
        line-height: 30px;
        margin-bottom: 20px;
    }

    .presentation .benefits {
        display: flex;
        gap: 20px;
        text-align: center;
        margin-bottom: 20px;
    }

    .presentation .benefits li {
        flex-direction: column;
        flex: 1;
        font-size: 12px;
    }

    .presentation .templates {
        gap: 5px;
        height: 150px;
    }

    .presentation .templates .column {
        gap: 5px;
    }

    .presentation .templates .column img {
        border-radius: 3px;
    }

    .sign-up {
        padding: 20px 30px 30px;
        box-shadow: 0 0 20px #0a538f;
    }

    .sign-up h2 {
        font-size: 11px;
        margin-bottom: 0;
    }

    .sign-up form {
        width: 100%;
    }

    .sign-up form .section-icon {
        display: inline;
        margin: 20px 0 10px;
    }

    .sign-up form .line {
        flex-direction: column;
    }

    #error-message {
        font-size: 14px;
    }

    .sign-up form .consent {
        font-size: 10px;
    }

    .sign-up .login-link {
        display: none;
    }

    #validation-message {
        width: auto;
        font-size: 12px;
    }
}
