main {
    .error-banner {
        transform: translateY(-200px);
        opacity: 0;
        transition: transform 0.5s ease-out, opacity 0.5s ease-out;
        position: fixed;
        top: 0;
        left: 0;
        /* width: 100%; */
        z-index: 1000;  
        background-color: #fdd; 
        color: #a00;
        padding: 15px;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        &.show {
            transform: translateY(0);
            opacity: 1;
        }
        &.hide {
            transform: translateY(-200px);
            opacity: 0;
        }
    }
    form {
        width: 80%;
        margin: 0 auto;
        padding: 20px 30px;
        color: var(--mc);
        font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        border-radius: 10px;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
        position: relative;
        .already-account {
            position: absolute;
            right: 20px;
            font-size: 15px;
            color: var(--fdc);
            a {
                color: var(--fdc);
            }
        }
        h1 {
            text-transform: uppercase;
            font-size: 22px;
            text-align: center;
        }
        .box-info {
            background: rgba(0, 0, 0, 4%);
            width: 100%;
            margin: 10px 0;
            padding: 7.5px 10px;
            color: var(--mc);
            text-align: justify;
            font-size: 15px;
        }
        .flex-part {
            display: flex;
            flex-direction: row;
            .box-form {
                width: 50%;
                padding: 10px 10px;
                .bloc-info {
                    background: rgba(0, 0, 0, 4%);
                    width: 100%;
                    margin-bottom: 10px;
                    padding: 5px 7.5px;
                    background: rgba(0, 0, 0, 4%);
                    color: var(--dc);
                    text-align: center;
                    font-size: 14px;
                    &.data-bloc-infos {
                        text-align: justify;
                        margin-top: 2px;
                    }
                }
                .mandatory-field {
                    color: var(--rc);
                }
                button {
                    all:unset;
                    border: none;
                    outline: 1.5px solid var(--vc);
                    width: 100%;
                    color: var(--vc);
                    text-align: center;
                    cursor: pointer;
                    height: 35px;
                    transition: all ease 0.3s;
                    text-transform: uppercase;
                    &:hover {
                        background: var(--vc);
                        color: var(--lc);
                    }
                }
                .input-group {
                    position: relative;
                    margin-bottom: 20px;
                    input, select {
                        width: 100%;
                        padding: 10px 15px;
                        font-size: 16px;
                        border: none;
                        outline: 1px solid var(--mc);
                        background: transparent;
                        color: var(--mc);
                    }
                    input:focus {
                        border-bottom: 1.5px solid var(--mc);
                        transition: 0.1s;
                    }
                    select:focus {
                        outline: 2px solid var(--mc);
                        transition: 0.2s;
                    }
                    label {
                        position: absolute;
                        top: 7.5px;
                        left: 7.5px;
                        color: var(--mc);
                        background: white;
                        padding: 0 4px;
                        transition: 0.2s ease;
                        pointer-events: none;
                    }
                    input:focus + label,
                    input:not(:placeholder-shown) + label,
                    select:focus + label,
                    select:not([value=""]) + label {
                        top: -10px;
                        left: 10px;
                        font-size: 12px;
                        color: var(--mc);
                    }
                    .password-container {
                        position: relative;
                    }
                    .toggle-password {
                        position: absolute;
                        top: 50%;
                        right: 10px;
                        transform: translateY(-50%);
                        cursor: pointer;
                        width: 24px;
                        height: 24px;
                    }
                    .text-info {
                        color: rgba(0, 0, 0, 0.35);
                        font-size: 14px;
                        line-height: 1em;
                        margin-top: 2px;
                        text-align: justify;
                        font-style: italic;
                    }
                }
                .part-box-form {
                    display: flex;
                    flex-direction: row;
                    gap: 10px;
                    width: 100%;
                }
                .mandatory-text {
                    font-style: italic;
                    font-size: 14px;
                    text-align: right;
                    color: var(--rc);
                }
            }
        }
    }
}

@media (max-width: 768px) {
    main {
        .error-banner {
            padding: 14px;
        }
        form {
            width: 90%;
            padding: 10px 20px;
            .already-account {
                font-size: 14px;
                top: -25px;
            }
            h1 {
                font-size: 18px;
            }
            .flex-part {
                flex-direction: column;
                .box-form {
                    width: 100%;
                    padding: 7.5px;
                    .bloc-info {
                        margin-bottom: 7.5px;
                    }
                    .input-group {
                        margin-bottom: 15px;
                    }
                    .part-box-form {
                        flex-direction: column;
                    }
                }
            }
        }
    }
}