form {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    gap: 40px;
}
input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    background: transparent;
    color: inherit;

    &:focus{
        outline: 1px solid var(--bg-btn);
    }
}

select, select::picker(select){
    appearance: base-select;
}

select{
    &::picker-icon{
        content: 'V';
    }
    optgroup{
        background: var(--text-color);
        color: var(--bg-color);
        font-family: var(--font-family), sans-serif;
    }
    option{
        color: var(--text-color);
        background: var(--bg-color);
        &:hover{
            background: var(--bg-btn);
        }
    }
}

textarea {
    min-height: 250px;
    resize: vertical;
}
/* File drop */
.drop-container {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2vh;
    margin-top: 5vh;
    padding: 2vh 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius);
}

.drag-over{
    background: var(--bg-btn);
}

input[type=file] {
    position: relative;
    width: 50%;
    border: none;
    color: transparent;

    &:after{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        content: 'Choisissez un fichier...';
        color: var(--text-color);
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: bold;
    }

    &:hover:after{
        background: var(--bg-btn);
    }
}

/* Bouton voir mot de passe */

input[type="password"]{
    padding-right:  50px;
}
.pswd-btn{
    position: absolute;
    margin: 0;
    padding: 0;
    right: 0;
    top: 0;
    border: none;
    flex: none;
    width: 50px !important;
    height: 100%;
    font-size: 20px;
    color: var(--text-color);
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    &:hover{
        filter: hue-rotate(90deg);
    }
}

